Operating System Fundamentals



Download 2.34 Mb.
View original pdf
Page17/66
Date06.03.2023
Size2.34 Mb.
#60834
1   ...   13   14   15   16   17   18   19   20   ...   66
OperatingSystemFundamentals
best answers from c, Lesson 2 C# Windows Forms
Review Questions
1. Describe two tasks that are performed by an operating system.
2. Describe the four layers of interaction in an operating system model.
3. Briefly describe how you can install multiple operating systems on the same computer.
4. Draw a diagram to demonstrate how virtualization can be used to run multiple operating systems at the same time.
5. Briefly describe the client-server model of an operating system.
6. Draw a simple diagram to show the two modes of operations of an OS.
7. Briefly describe the function of the Command Line Interpreter.
8. What are the major differences between System Calls and Interrupts
9. Describe the purpose of the Process Table.

Operating System Fundamentals
25
Unit 3: Processes
Processes and Multitasking Many people like to try to speedup several tasks by performing them at the same time, such as using a mobile phone while driving. While this seems like you are accomplishing two things at the same time, the truth is that your brain specifically focuses on just a single task at any specific time. The act of talking only occurs while you are not actively making decisions about the task of driving. To put this into perspective, if you know you are about to have an accident, you will stop talking. To further illustrate the idea of performing simultaneous actions consider the problem of reading a text message while watching TV. Your eyes can only look atone device at a time. You must switchback and forth between the two devices, or look at the mobile phone only while unimportant things are happening on the TVA CPU inside a computer is simply a high speed calculator that can perform relatively simple operations on a set of data. If we ignore for the moment the idea of dual and quad core CPUs, the CPU can only process a single instruction at any given time from a program. If we would like to have more than one program executing on the processor at the same time, the programs will need to take turns using the CPU. Since the computer switches back and forth between the two programs often enough, then it will look like both applications are running at the same time. This unit takes a detailed look at the definitions of processes and threads, and how the operating system manages processes and threads in multitasking environments. The first section deals with the definition of a process, and the concept of process states. We then take a look at state
changing, process creation and stopping processes. From there, we compare processes to threads, and take a look at why threads are important. This is followed with a detailed look at
inter process (and inter thread) communication, including process synchronization, memory sharing, the use of signals (or semaphores), critical sections, and the use of message queues. We conclude by looking at how an operating system actually handles process scheduling. This will include topics like completion scheduling, round robin scheduling, priority-based scheduling, and scheduling in multi-core/multi-processor environments. Process

Download 2.34 Mb.

Share with your friends:
1   ...   13   14   15   16   17   18   19   20   ...   66




The database is protected by copyright ©ininet.org 2024
send message

    Main page