JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech IV REAL-TIME SYSTEMS Previous Question Paper (December - 2020 - R16)
Answer any Five Questions. All Questions Carry Equal Marks.
Main
What is the difference between Linux and UNIX?
Answer
While Linux and UNIX share a similar architecture and command-line interface, they differ significantly in their origin, licensing, and development model:
- Origin: UNIX was developed by AT&T Bell Labs in the 1970s as a proprietary operating system. Linux was created by Linus Torvalds in 1991 as a free, open-source clone of UNIX.
- Licensing: UNIX is a proprietary, copyrighted operating system owned by various vendors (e.g., IBM, Oracle). Linux is released under the GNU General Public License (GPL), making its source code freely available for modification and redistribution.
- Development: UNIX development is typically restricted to the vendor's internal teams. Linux is developed collaboratively by a global community of volunteers and corporate contributors.
- Portability: UNIX was originally designed for specific hardware architectures. Linux is highly portable and runs on a vast range of hardware, from embedded systems to supercomputers.
- Cost: UNIX usually requires a paid license for commercial use. Linux is generally free to use, though enterprise support versions may have associated costs.
Illustrate fork() system call with a sample program.
Answer
The fork() system call is used to create a new process, known as the child process, which is an exact duplicate of the parent process. After the call, both processes continue execution from the next instruction. The function returns 0 to the child process and the process ID (PID) of the child to the parent process.
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
int main() {
pid_t pid = fork();
if (pid < 0) {
printf("Fork failed\n");
} else if (pid == 0) {
printf("Child process: PID = %d\n", getpid());
} else {
printf("Parent process: Created child with PID = %d\n", pid);
}
return 0;
}In this program, the fork() call splits the execution flow. The parent process receives the child's PID and prints its branch, while the child process receives 0 and executes its own branch.
Discuss the following system calls:
open()
Answer
Sign in to view the complete answer paper.
lseek()
Answer
Sign in to view the complete answer paper.
What is the significance of weighted round robin approach for real time scheduling? Mention the merits and demerits of weighted round robin scheduling with priority driven scheduling.
Answer
Sign in to view the complete answer paper.
Explain various operations performed on Tasks.
Answer
Sign in to view the complete answer paper.
Describe about I/O sub system and layered model.
Answer
Sign in to view the complete answer paper.
Explain Event Registers in detail.
Answer
Sign in to view the complete answer paper.
What is an Exception? What is an Interrupt? Explain processing of handling Exceptions.
Answer
Sign in to view the complete answer paper.
Write a short note on Tiny OS and Android OS.
Answer
Sign in to view the complete answer paper.