Search:

Type: Posts; User: Sirfabius

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    10,124

    What I'm currently doing is creating the whole...

    What I'm currently doing is creating the whole list before I fork, on main(). The two child processes, one of which adds nodes, while the other removes them, don't really free any memory, I'm simply...
  2. Replies
    10
    Views
    10,124

    I was able to overcome this problem mapping the...

    I was able to overcome this problem mapping the linked list in shared memory, like so:




    if ((shmid = shmget(keysharedmem, sizeof(struct node), IPC_CREAT | 0666)) < 0) {
    ...
  3. Replies
    10
    Views
    10,124

    Thanks for the reply. How would you do it if the...

    Thanks for the reply. How would you do it if the list had to be altered after the processes forked, and fully accessed by both processes? Keep the whole thing in shared memory?
  4. Replies
    10
    Views
    10,124

    Problem with linked list and shared memory

    Hello all!

    First time poster here. I have a problem and I'm at my wit's end on how to solve it. Basically I'm trying to put together a doubly linked list whose head is in a shared memory segment....
Results 1 to 4 of 4