JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech II OPERATING SYSTEMS Previous Question Paper (March - 2022 - R16)
Answer any five questions. All questions carry equal marks.
Main
Explain the Operating System services.
Answer
Operating System services provide an environment for the execution of programs and the services to the programs and users. Key services include:
- Program Execution: The system must be able to load a program into memory and run it, including handling program termination.
- I/O Operations: Since user programs cannot execute I/O operations directly, the OS provides a means to perform these operations on behalf of the user.
- File-System Manipulation: The OS manages the creation, deletion, reading, writing, and directory management of files.
- Communications: Processes may need to exchange information, either on the same computer or via a network, using shared memory or message passing.
- Error Detection: The OS constantly monitors for errors in the CPU, memory, I/O devices, or user programs to ensure consistent computing.
- Resource Allocation: The OS manages resources like CPU cycles, main memory, and file storage for multiple users or jobs.
- Accounting: The system tracks which users use how many and what kinds of resources for billing or usage statistics.
Discuss the Protection and Security.
Answer
Protection and security are essential for multi-user and networked systems to ensure integrity and confidentiality.
Protection refers to a mechanism for controlling the access of programs, processes, or users to the resources defined by the computer system. It provides a means for the system to distinguish between authorized and unauthorized usage, ensuring that processes operate within their assigned memory spaces and access only the files they are permitted to use. This is enforced through mechanisms like access control lists and user authentication.
Security refers to measures taken to defend the system against internal and external attacks. These include threats such as viruses, worms, denial-of-service attacks, and unauthorized data breaches. Security involves authentication (verifying the identity of a user via passwords or biometrics), encryption (protecting data during transmission or storage), and firewalls to monitor and control network traffic. While protection is internal to the system's resource management, security is a broader defense against malicious intent.
List and explain the various types of system calls.
Answer
Sign in to view the complete answer paper.
Consider the following process table:
| PID | AT | BT |
|---|---|---|
| P1 | 0 | 1 |
| P2 | 1 | 2 |
| P3 | 2 | 3 |
With CPU bursts and IO bursts defined as:
| PID | CPU | IO | CPU |
|---|---|---|---|
| P1 | 1 | 2 | 2 |
| P2 | 1 | 2 | 4 |
| P3 | 2 | 3 | 6 |
What are the completion times of processes P1, P2 and P3 using SRTF (Shortest Remaining Time First)?
Answer
Sign in to view the complete answer paper.
Draw and explain the process state diagram with two suspend states.
Answer
Sign in to view the complete answer paper.
Explain the Classic Problems of Synchronization.
Answer
Sign in to view the complete answer paper.
In a paged memory, the page hit ratio is 0.35. The time required to access a page in secondary memory is equal to 100nS. The time required to access a page in physical memory is 10nS. What is the average time required to access a page?
Answer
Sign in to view the complete answer paper.
Discuss the hardware support required to support demand paging.
Answer
Sign in to view the complete answer paper.
Explain about FIFO, LRU page replacement algorithms with example.
Answer
Sign in to view the complete answer paper.
Discuss the Directory and Disk Structure.
Answer
Sign in to view the complete answer paper.
Give a brief note on File System Structure.
Answer
Sign in to view the complete answer paper.
Define deadlock. Explain the necessary conditions for a deadlock to occur.
Answer
Sign in to view the complete answer paper.
Is it possible to apply the Resource allocation graph algorithm to avoid deadlock? Explain.
Answer
Sign in to view the complete answer paper.