hi,all:
I am a freshman. I cannot distinguish the difference between singnal and semphore?
I think the two terms are a little similar.
who can explain that ? You'd better take a example. thanks!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hi,all:
I am a freshman. I cannot distinguish the difference between singnal and semphore?
I think the two terms are a little similar.
who can explain that ? You'd better take a example. thanks!
Ferdinand,
There is a description of Semaphores and a usage example in Chapter 4 of the SYS/BIOS User’s Guide (Bios_User_Guide.pdf, in the “docs” subdirectory of your installation, for example: c:\ti\bios_6_37_02_27\docs).
You can also find a good general overview of semaphores in this Wikipedia article: http://en.wikipedia.org/wiki/Semaphore_(programming)
Scott
hi,Scott Gray:
I don't understand why somebody from TI move my post from linux to RTOS forum.
Gray,I know semphore and I also can use semphore well. My question is I don't know the
difference between singnal and semphore which come from linux .
Can someone move this subject into linux forum again? I don't think it's a good place where
we talk the difference semphore and signal. Because signal is linux terminology not DSPBIOS terminology.
thanks!
Ferdinand,
I went ahead and moved this post back to the Linux forum. However, I would advise you to post your general questions about Linux on a more generic Linux forum site, as you're sure to get a better response there. The TI forums tend to be best at answering questions that are more specific to TI's products.
Hi Ferdinand,
The both terms used for different purpose.
Signal,
It is async notification to the process or threads.
In other way, The communication between user space and kernel is given by the system calls. But there is a different channel, that of the signals, used both between user processes and from kernel to user process.
Ex:
When you press [ctrl+c] in linux then SIGINT interrupt get generated that is called signal.
In case of semaphore,
It is locking mechanism when we do multiple thread programming.