Difference: Lab2CSMajors2013 (4 vs. 5)

Revision 52013-09-19 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="CSC4093ComputerNetworking2013"

Lab 2 CS Majors

Line: 12 to 12
 
Changed:
<
<
>
>
  Lab overview:
Line: 39 to 39
 Sample code for sending and receiving broadcasts in multiple threads (in "/home/class/csc4093/ThreadBroadcast")
Added:
>
>
Thread Synchronization

The threads library provides three synchronization mechanisms:

  • mutexes - Mutual exclusion lock: Block access to variables by other threads. This enforces exclusive access by a thread to a variable or set of variables.
  • joins - Make a thread wait till others are complete (terminated).
  • condition variables - data type pthread_cond_t
Sample code for sending and receiving broadcasts in multiple threads with mutex for synchronization (in "/home/class/csc4093/ThreadBroadcastSync")
  Lab tasks:
 
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback