5B4AIT Calendar
March 2012
M T W T F S S
« Feb   Apr »
 1234
567891011
12131415161718
19202122232425
262728293031  
HamSphere Forums

HamSphere info

Yahoo! Weather Forecasts
Cyprus Mail News

POSIX Threads

Have monitored the network over night and realize that were still a socket closing issue. I corrected the code this morning and upgraded the whole network. It went smoothly. The server platform is written in POSIX C Threads multi threaded environment and such environment is prone to “race conditions”. A race condition will occur when two or more processes fight over a memory variable. For that reason POSIX has a memory locking mechanism called “MUTEX”. Mutexes are fine and they work well, it is just that the code needs to be engineered and thought through before writing it. There are always traps that you may fall in so coding in a multi threaded environment is really hard.

Leave a Reply

Solar-Terrestrial Data
free counters

IP address
Tag Cloud