0% found this document useful (0 votes)
2 views2 pages

Assignment-1

The document outlines an assignment for an Operating Systems course, presenting a series of questions related to key concepts such as the role of operating systems, interrupts, process management, and threading. It encourages students to explore both theoretical and practical aspects of operating systems, including system design approaches and performance considerations. The assignment covers a range of topics, from the purpose of command interpreters to the implications of multithreading and process creation.

Uploaded by

Saransh Tyagi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Assignment-1

The document outlines an assignment for an Operating Systems course, presenting a series of questions related to key concepts such as the role of operating systems, interrupts, process management, and threading. It encourages students to explore both theoretical and practical aspects of operating systems, including system design approaches and performance considerations. The assignment covers a range of topics, from the purpose of command interpreters to the implications of multithreading and process creation.

Uploaded by

Saransh Tyagi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Operating Systems (18B11CI411)

Assignment-1

1. Keeping in mind the various definitions of operating system, consider whether the operating
system should include applications such as web browsers and mail programs. Argue both that it
should and that it should not, and support your answers.
2. What is the purpose of interrupts? How does an interrupt differ from a trap? Can traps be
generated intentionally by a user program? If so, for what purpose?
3. Some early computers protected the operating system by placing it in a memory partition that
could not be modified by either the user job or the operating system itself. Describe two
difficulties that you think could arise with such a scheme.
4. What is the purpose of the command interpreter? Why is it usually separate from the kernel?
5. What is the main advantage of the layered approach to system design? What are the
disadvantages of the layered approach?
6. Describe three general methods for passing parameters to the operating system.
7. When a process creates a new process using the fork() operation, which of the following states
is shared between the parent process and the child process? a. Stack b. Heap c. Shared memory
segments
8. Find the maximum number of processes that can be in Ready state for a computer system with
n CPUs?
9. What is the disadvantage of direct-communication in Message-Passing Systems?
10. Under what circumstances does a multithreaded solution using multiple kernel threads provide
better performance than a single-threaded solution on a single-processor system?
11. In the following diagram illustrating the various states a process can be in, draw arrows
connecting each pair of states that a preemptive operating system may move a process
between. Label each arrow with a brief description of a situation where the operating system
would move the process as indicated

12. How many processes are generated by the following program code? Draw a tree showing the
generation of parent-child processes. What is the output produced?

13. How many processes are generated by the following program code? Draw a tree showing the
generation of parent-child processes. What is the output produced?
14. Draw tree structure of the following program code. What is the output?

15. Using Amdahl’s Law, calculate the speedup gain of an application that has a 60 percent parallel
component for (a) two processing cores and (b) four processing cores.
16. What are two differences between user-level threads and kernel-level threads? Under what
circumstances is one type better than the other?
17. Which of the following components of program state are shared across threads in a
multithreaded process? a. Register values b. Heap memory c. Global variables d. Stack memory
18. Is it possible to have concurrency but not parallelism? Explain.

You might also like