Processes and Threads

Simple C example
Include text of header file in $< >$ for system, user header name in `` ''
main program called ``main'', with these argument types
#include <stdio.h>
int main(int argc, char *argv[ ])
{
int i;
for (i=0; i < argc; i++)
printf(``command line argument [%d] = %s \n'',
i, argv[i]);
}
Figure 8: System Calls
\includegraphics[scale=0.8]{figures/systemcall1.ps} \includegraphics[scale=0.8]{figures/systemcall2.ps}


Subsections

Cem Ozdogan 2004-03-13