Help for this page

Select Code to Download


  1. or download this
    # this is the writer trace
    # this sequence is repeated 4 times
    ...
    write(3, "This is some silly,\n", 20)   = 20
    close(3)                                = 0
    munmap(0x40016000, 4096)                = 0
    
  2. or download this
    # this is the reader trace
    # notice how we got all 82 bytes at one shot
    ...
    write(1, "done.\n", 6)                  = 6
    write(1, "Taking a long time... ", 22)  = 22
    time([1009160476])                      = 1009160476
    
  3. or download this
           Under  Linux,  opening a FIFO for read and write will suc?
           ceed both in blocking and non-blocking mode. POSIX  leaves
    ...
           cess  that  uses  both  ends of the connection in order to
           communicate with itself should be very  careful  to  avoid
           deadlocks.