Unformatted text preview:

UNIX Fork/Exec ExampleWindows Process CreationSlide 3CS 140 Lecture Notes: Introduction Slide 1UNIX Fork/Exec Exampleint pid = fork();if (pid == 0) { exec("foo"); } else { waitpid(pid, &status, options);};Child processParent processCS 140 Lecture Notes: Introduction 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: Introduction Slide


View Full Document

Stanford CS 140 - UNIX Fork Exec Example

Documents in this Course
Homework

Homework

25 pages

Notes

Notes

8 pages

Load more
Download UNIX Fork Exec Example
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 UNIX Fork Exec Example 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 UNIX Fork Exec Example 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?