CCS21203/DSE20203: OPERATING SYSTEM Assignment, MSU, Malaysia Apply the principles and theories related to information technology and application in the Operating System environment
University | Management & Science University (MSU) |
Subject | CCS21203/DSE20203: OPERATING SYSTEM |
PROGRAM OUTCOME(S):
PO 1 Apply the principles and theories related to information technology and application in the Operating System environment.
COURSE OUTCOME(S):
CO1 Describe the purpose and functions of Operating Systems
CO2 Compare the concept of a thread, multi-threading models, and libraries
CO5 elaborates on the concepts of CPU scheduling, scheduling criteria, scheduling algorithms, deadlocks, and methods of handling deadlocks.
QUESTION:
Deadlock is a situation that occurs in OS when any process enters a waiting state because another waiting process is holding the demanded resource. Deadlock is a common problem in multi-processing where several processes share a specific type of mutually exclusive resource known as a soft lock or software.
a) Choose only ONE of the following cases and explain in detail how deadlock occurs in the selected case.
Case 5 : Deadlocks in Spooling
Case 1 : Deadlocks on File Requests
Case 2 : Deadlocks in Databases
Case 3: Deadlocks in Dedicated Device Allocation
Case 4 : Deadlocks in Multiple Device Allocation
Case 5 : Deadlocks in Spooling
Case 6 : Deadlocks in Disk Sharing
Case 7: Deadlocks in a Network
b) The banker’s algorithm is a resource allocation and deadlock avoidance algorithm that tests for safety by simulating the allocation for predetermined maximum possible amounts of all resources, then makes an “s-state” check to test for possible activities, before deciding whether allocation should be allowed to continue.
1. Consider the following snapshot of a system in which four resources A, B, C and D area available. The system contains a total of 6 instances of A, 4 of resource B, 4 of resource C, 2 resource D.
According to above scenario, do the following problems using the banker’s algorithm:
I. Compute what each process might still request and fill this in under the column Need.
II. Is the system in a safe state? Why or why not?
III. Is the system deadlocked? Why or why not?
IV. If a request from P3 arrives for (2,1,0,0), can the request be granted immediately?
c) The OS can detect the deadlocks with the help of Resource allocation graph. In single instanced resource types, if a cycle is being formed in the system, then there will definitely be a deadlock
Consider the following snapshot of a system in which five resources A, B, C, D and E are available. The system contains a total of 2 instances of A, 1 of resource B, 1 of resource C, 2 resource D and 1 of resource E
Do the following problems:
a. Convert this matrix representation to a resource allocation graph.
b. Use the deadlock detection algorithm to determine whether the system contains a deadlock. Which processes are involved in the deadlock?
c. While you are use the deadlock detection algorithm, add and remove directed edges of the re- source allocation graph.
Get Solution of this Assessment. Hire Experts to solve this assignment for you Before Deadline.
Get Help By Expert
Need online assignment help for your CCS21203/DSE20203: Operating System assignment? Look no further than Assignment Helper My! Our dedicated team of experts specializes in operating system concepts and can provide you with top-notch assistance. Whether it's solving complex algorithms, implementing process scheduling algorithms, or analyzing memory management techniques, our professionals will ensure your assignment is completed with precision. You also hire our experts for thesis writing help in Malaysia
Recent Solved Questions
- BBUI3103: Employment and Industrial Law Assignment, OUM, Malaysia Differentiate between dismissal and termination and consider whether the grounds of dismissal and termination
- BBF305/03: Investment and Portfolio Management Assignment, WOU, Malaysia Calculate the betas for both stocks and Discuss the problems encounters when testing the CAPM empirically
- FFN20303: A deposit of $500 (PV) made five years ago is worth $705.30 today (FV). The deposit pays interest semi-annually: Money and Capital Market Assignment, MSU, Malaysia
- Mathematics Assignment, MMU, Malaysia Solve the following pair of simultaneous differential equations
- BEC1624: Macroeconomics Assignment, MMU, Malaysia This follows a stronger-than-expected recovery of 7.8 percent last year. Malaysia’s strong performance in 2022
- Contract law Essay, UOL, Malaysia The Littledale Golf Club and At 9 am on 1st May the club places a large poster at the entrance
- Researcher Competence Report, UMS, Malaysia How can quantitative research methods be used to evaluate the effectiveness of teacher training programs
- Methodology Case Study, MUM, Malaysia In any industry, few organizations may face communication as a barrier to moving further, and also it can be difficult
- Bachelor of Performing Arts Assignment, TU, Malaysia Discuss three symbolisms in the play Macbeth and how they support the central theme of the play
- Environmental Management Assignment, UiTM, Malaysia ABC Manufacturing Sdn. Bhd. is a newly established beverage manufacturing company. Its product which is for the domestic market