Search:

Type: Posts; User: CornedBee

Search: Search took 0.11 seconds.

  1. Replies
    14
    Views
    25,394

    Yes, one memory segment. But imagine the...

    Yes, one memory segment. But imagine the following sequence of two threads:


    A -> Create SHM
    B -> Attempt and fail to create SHM
    B -> Lookup SHM (assume mutex is initialized)
    B -> Try to lock...
  2. Replies
    14
    Views
    25,394

    How do you do it in the first place? How do you...

    How do you do it in the first place? How do you prevent one process from finding the shared memory and using it before the processes that allocated the shared memory has initialized the mutex there?...
Results 1 to 2 of 2