Search:

Type: Posts; User: Joanna91

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    9,130

    Thank you for your reply! UNfortunately the...

    Thank you for your reply! UNfortunately the programm still isn't running. My problem is multiple readers one writer one, so I can't use the last part you coded =/. I tried just printing out a message...
  2. Replies
    9
    Views
    9,130

    I wrote this, but something is wrong with it =/...

    I wrote this, but something is wrong with it =/ The programm waits for ever after all children have been spawned


    /* A readers/writers program for multiple readers and multiple writers */...
  3. Replies
    9
    Views
    9,130

    I'm sorry but I am a bit confused ^^ Let's say...

    I'm sorry but I am a bit confused ^^ Let's say that the readers simply print elements, so we don't mind having two readers run at the same time, but we don't want a reader to be happening at the same...
  4. Replies
    9
    Views
    9,130

    Thank you for all the information! I'll work on...

    Thank you for all the information! I'll work on it. In your example, can two writers run at the same time? The sleep function aren't working as you said but I don't really get why. RandomGap seems...
  5. Replies
    9
    Views
    9,130

    reader-writer implementation sync problem

    Hello! I have to implement the multiple reader-writer problem using forks and semaphores. i've written this test code:


    for(i=0;i<2;i++){
    if ((pid = fork()) < 0) {
    ...
  6. That is a great example thank you! Is there a way...

    That is a great example thank you! Is there a way for a parent process to have two children? Or should I make "grandchilds' for the 3rd process? Thanks for all the help =)
  7. Thank you everyone! Actually memcpy was right, I...

    Thank you everyone! Actually memcpy was right, I can't use threads, probably forks. But I don't know how to avoid messing them all up xD Making seperate programms with mmap or shmem sounds like a...
  8. 3 types of processes accessing shared memory

    Hello! I am trying to write a program in c, where you have a linked list and 3 processes share it, one inserts stuff the other deletes and the third reads at the same time. I am a bit confused as to...
Results 1 to 8 of 8