[text] IS Virtualiy. E Idress space ehow maps ence within varxcesses it has phys memorys nNOW 305 cuvk Ofheg o et i O lmhmm e p e AA7 LSsTAL LY LT include necommon.h include volatile int counter 0 int 1oo0PSy void workervcid xarg int 4y for 1 Oy counter 1 100p8 3e . return NULL int mainint argc char xargv 3 targc. l.2 fREINtL stae 2 sy exit 1 n usage threads valuen loops atoiargvl pthreadt pl p2 printfInitiali g alue dn counter Pthread create 1 Pthreadcreate 02 Egii Zgiter S Pthread joinpl NULL e Pthreadjoin p2 NULLC printf Final value t sdn return 0 S counter Figure 2.5 A Multithreaded Program threads. c Unfortunatel y the problems of to the OS itself. Indeed modern nirtrl same problgms. Let us demonstrate with an examp tand this example ful in later chapters int is simple. The main p e You can think 0 emory space as ot o In this example 1n which it sim rrency are no longer lim threaded programs exl le of a multit ly at the he secti rograr f a th her functic each thre ply incrt