Iam_Sandeep

Untitled

Sep 14th, 2022
800
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.62 KB | None | 0 0
  1. Process 1
  2. code {instructions}
  3. data {global varibales}
  4. stack {f-->f-->}
  5.  
  6. Process 2
  7. code {instructions}
  8. data {global varibales}
  9. stack {f-->f-->}
  10.  
  11. 1)
  12. When program moves to RAM its called Process
  13. Thread is ligh weight Process
  14. 2)Three separate sections
  15. Code common data,stack separate
  16. 3)Thread less time
  17. processs more time
  18. 4) Thread is less secure
  19. Process is more secure
  20. 5)When executing system call process needs to move from usermode  kernal mode
  21. When executing system call thread doesnt need to move from usermode  kernal mode
  22. SO thread is faster
  23.  
  24.  
  25.  
  26. Thread
  27.        code
  28. data   data   data
  29. stack  stack  stack
Advertisement
Add Comment
Please, Sign In to add comment