Unformatted text preview:

UNIX Fork/Exec ExampleWindows Process CreationSlide 3CS 140 Lecture Notes: Processes and Threads Slide 1UNIX Fork/Exec Exampleint pid = fork();if (pid == 0) { exec("foo"); } else { waitpid(pid, &status, options);};Child processParent processCS 140 Lecture Notes: Processes and Threads Slide 2Windows Process CreationBOOL CreateProcess( LPCTSTR lpApplicationName, LPTSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCTSTR lpCurrentDirectory, LPSTARTUPINFO lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation);CS 140 Lecture Notes: Processes and Threads Slide


View Full Document

Stanford CS 140 - Lecture Notes

Documents in this Course
Homework

Homework

25 pages

Notes

Notes

8 pages

Load more
Download Lecture Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?