On Wed, Jul 16, 2008 at 2:59 PM, Knowledge Seeker
<[EMAIL PROTECTED]> wrote:
[...]
> Process A creates a txt file containing a line "A quick brown fox jumps
> over the lazy little dog"
> Process B reads the txt file and displays it on the screen and then
> deletes the file.
> Process A again does .... process b again does  the same ...

Ah - homework.

The canonical method of doing this is for process A to open for
exclusive access a file (with filename returned from tmpnam() or
similar), dump what it wants to in there, then close it.

Process B looks for files that it's able to open, process them, then
deletes them after.

-- 
PJH

'Two Dead in Baghdad' not 'product-friendly' - Kent Ertugrul, chief
executive of Phorm.

http://shabbleland.myminicity.com/env

Reply via email to