T
Thierry
I have the following perl file greet.pl
# LOCK ACQUIRED
print "hello";
# LOCK RELEASED
My linux os can have four threads running the greet.pl file
simultaneously. How should I write the semaphore codes so that only
one thread can access the print "hello" line at any given time?
Thierry
# LOCK ACQUIRED
print "hello";
# LOCK RELEASED
My linux os can have four threads running the greet.pl file
simultaneously. How should I write the semaphore codes so that only
one thread can access the print "hello" line at any given time?
Thierry