Nội dung text 07.Tutorial Ch 2.3-2.3.3 DFC10103.pdf
29 DEPARTMENT OF INFORMATION AND COMMUNICATION TECHNOLOGY COURSE WORK ASSESSMENT CODE & COURSE : DFC10103 – OPERATING SYSTEM PROGRAMME : DDT TUTORIAL ACTIVITY : 4 (2.3.1 – 2.3.3) CLO : CLO 1 – explain the operating system environment, the concept of memory, process and file management in operating system. (C2, PLO1) DURATION : 2 HOURS TOPIC 2: MEMORY AND PROCESS MANAGEMENT Instruction(s): Answer all questions. Activity 4A Activity Outcome: Describe the definition of Deadlock. 1. For a computer science example, consider two processes A and B that each want to print a file currently on tape. a. A has obtained ownership of the printer and will release it after printing one file. b. B has obtained ownership of the tape drive and will release it after reading one file. c. A tries to get ownership of the tape drive, but is told to wait for B to release it. d. B tries to get ownership of the printer, but is told to wait for A to release the printer. e. Draw the deadlock of two processes A and B. 2. Bingo! You already draw a deadlock diagram!