Jawaharlal Nehru Technological University Hyderabad
Jawaharlal Nehru Technological University Hyderabad B.Tech IV REAL-TIME SYSTEMS Previous Question Paper (July/August - 2022 - R16)
Answer any five questions. All questions carry equal marks.
Main
What are the different types of files in an UNIX operating system? Explain briefly.
Answer
In UNIX, everything is treated as a file. The primary types are:
- Ordinary Files: These contain user data, such as text, source code, or binary executables. They are the most common file type.
- Directory Files: These act as containers that store lists of filenames and their corresponding inode numbers, providing the hierarchical structure of the file system.
- Character Device Files: These provide a raw, unbuffered interface to hardware devices that process data as a stream of characters, such as terminals or serial ports.
- Block Device Files: These provide a buffered interface to hardware devices that store data in fixed-size blocks, such as hard drives or USB storage.
- Symbolic Links: These are special files that act as pointers or shortcuts to another file or directory, allowing multiple names for the same data.
- Named Pipes (FIFOs): These are used for inter-process communication, allowing processes to exchange data in a first-in, first-out manner.
- Sockets: These are specialized files used for network communication between processes, potentially across different machines.
Explain the Process control phenomenon based on different UNIX commands.
Answer
Process control in UNIX involves managing the lifecycle, execution, and state of processes using specific system calls and commands:
- fork(): This system call creates a new process (child) by duplicating the calling process (parent). The child receives a unique process ID (PID).
- exec(): This family of functions replaces the current process image with a new program, allowing a process to execute a different binary while retaining its PID.
- wait(): This command allows a parent process to pause execution until one of its child processes terminates, preventing the creation of zombie processes.
- exit(): This terminates the calling process, releasing its resources and notifying the parent process of its completion status.
- kill(): This command sends a signal (such as SIGTERM or SIGKILL) to a process, typically used to request or force the termination of a running process.
- ps and top: These commands are used to monitor the status, resource usage, and hierarchy of currently active processes in the system.
Explain various file handling utilities and process utilities.
Answer
Sign in to view the complete answer paper.
Differentiate between fork( ) and vfork( ). And write the functions of i) lseek, ii) fwrite.
Answer
Sign in to view the complete answer paper.
Explain the various RTOS system level functions.
Answer
Sign in to view the complete answer paper.
Explain the various scheduling criteria in evaluating scheduling algorithms.
Answer
Sign in to view the complete answer paper.
Describe various APIs of Message queues that are used for inter process communication.
Answer
Sign in to view the complete answer paper.
Explain in detail about preemptive fixed priority scheduling policy.
Answer
Sign in to view the complete answer paper.
List the pitfalls in using Mailbox, Message queues and Pipes.
Answer
Sign in to view the complete answer paper.
Explain in detail about preemptive and non-preemptive scheduling.
Answer
Sign in to view the complete answer paper.
Explain in detail about Memory-Mapped I/O.
Answer
Sign in to view the complete answer paper.
Describe the I/O function mapping in detail.
Answer
Sign in to view the complete answer paper.
What is an interrupt? Explain in detail about Interrupt Service Routines.
Answer
Sign in to view the complete answer paper.
Explain the exceptions and what is the process of handling exceptions?
Answer
Sign in to view the complete answer paper.
Draw and explain the architecture for Air Traffic Control(ATC).
Answer
Sign in to view the complete answer paper.
Illustrate the block diagram of Automatic Chocolate Vending Machine System (ACVM).
Answer
Sign in to view the complete answer paper.