Advertisement
HmHimu

os

Oct 14th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. fork()
  2. The purpose of fork() is to create a new process, which becomes the child process of the caller. After a new child process is created, both processes will execute the next instruction.
  3. It takes no arguments and returns a process ID
  4. If fork() returns a negative value, the creation of a child process was unsuccessful.
  5. fork() returns a zero to the newly created child process.
  6. fork() returns a positive value, the process ID of the child process, to the parent. A process can use function getpid() to retrieve the process ID assigned to this process.
  7. Why Threads?
  8. multitasking
  9. #Second n third paragraph
  10. https://pages.mtu.edu/~shene/NSF-3/e-Book/FUNDAMENTALS/threads.html
  11.  
  12. https://way2java.com/multithreading/java-made-simple-what-is-thread-in-java-why-threads-required/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement