in reply to manage file in parallel

Hi

In this scenario, I would suggest you to use pipe. Pseudo code :-

run has to read the named pipe whether any user name there or not. If user is there Give prefrences to the user write the second user name in the pipe, so that next time when run reads the pipe this will get the new username If no user run has to write the username in named pipe.

"Keep pouring your ideas"

Replies are listed 'Best First'.
Re^2: manage file in parallel
by azaria (Beadle) on Jun 06, 2006 at 08:10 UTC
    First thanks for your fast reply. do you mean i need to use the $| =1 ? what if in the minute a user will open the file to write his name another user will try to write his name in the same , the action will fail, isn't ?
    A reply falls below the community's threshold of quality. You may see it by logging in.