When multiple process will be using a shared memory to restict the ambiguity we use semaphore technique. Can I achieve the same thing using a file in place of semaphore , if yes how? If no why?

Showing Answers 1 - 4 of 4 Answers

Raj

  • Sep 21st, 2006
 

Normally semaphore techniques are used when handling multiple resources. In your case you can use Mutex locks. Because you have only one file descriptor.

  Was this answer useful?  Yes

wizard

  • Feb 27th, 2007
 

i think u can use the files, but use "sopen" insted of "open".

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions