| 
                  Shared Variables in Pthreads
                   An Introduction  | 
            
| 
                   
                      
                     Prof. David Bernstein
                       | 
            
| Computer Science Department | 
| bernstdh@jmu.edu | 
               
            
         
            
         errno
                     
         
            
         
         
            
         
         
            
         
         
            
         
                        
                     
                        
                     
         
            
         
                        
                     
         
            
         main()?main() is the first function
	      called and doesn't exit until termination)
                        
                     
                        
                     
         
            
         main() calls
	      foo() which itself calls bar()?bar() on top of those declared/defined in
	      foo() on top of those declared/defined in
	      in main()