Messages in this thread |  | | Date | Thu, 21 Nov 1996 08:00:04 -0500 | From | "Steven N. Hirsch" <> | Subject | Re: Behavior of semaphore's down/up functions (2.0.24) |
| |
Bo Liu wrote: > > Hi, any experts there willing to help: > > I am a new grad learning to write linux device drivers and want to > understand some kernel codes related to driver programming. > > I have a question on the behavior of semaphore's down/up functions..... : >
> giving the result in /var/adm/syslog: > > process 0 down > process 0 got device > process 1 down > process 0 up > process 0 down > process 0 got device > > while what is expected on the last line is "precess 1 got device" because > precess 1 did the down before process 0 did it the second time.
Don't confuse the ordering of your messages in the syslog with the actual execution sequence. AFAIK, the relationship between the two will not be deterministic.
Steve
|  |