Can I use Semaphore bet 2 C programs?
Hello,
I have never use Semaphore before but would like to use it now for my programs. I have two c programs. For example, Test1.c and Test2.c Can I use semaphore to 'communicate' Test1.c and Test2.c?? Could someone gives me an example? I did the following but the whole os crashes. Do advise me please! For example, Test2.c: Semaphore_signal(Testing1); Test1.c: Semaphore_t Testing1; Semaphore_wait(Testing1); Could someone please tell me what went wrong? THANK YOU SO MUCH!!! |
|
Quote:
Quote:
|
All times are GMT -5. The time now is 05:01 AM. |