Midterm Review 1-25 Flashcards
What are the five main categories of modern computer systems?
Personal Mobile Device (PMD) Desktop Computing Servers Clusters / Warehouse Scale Computers Embedded Computers
What is the primary task of an operating system?
Answer 1: A program that acts as an intermediary between a user of a computer and the computer hardware.
Answer 2: OS is a resource allocator, which manages all resources, decides between conflicting requests for efficient and fair resource use, and controls programs within allocated space.
What are the two main characteristics of an OS?
Efficiency and convenience.
Efficiency means that the OS can manage multiple processes and allocate memory to these processes fairly and efficiently. For example, if one process is trying to hug a large number of frames, the other processes should not be denied active frames. If a process is not using its frame or CPU assets, that process should be deactivated. In servers, efficiency is of main importance.
Convenience is a factor that a user of the system expects from the OS. Allowing a user to access programs and applications easily is an example. In mobile devices, convenience is a major factor.
For networked distributed computing, the networks are categorized into four groups in terms of the distance between members. What are these four types of networks?
LAN: local area
WAN: wide area
MAN: metropolitan area
PAN: personal area
Computing environments, in terms of the role of connected members of a network, are divided into two types. What are these two types of networks?
Client-server
Peer-to-peer
What is the difference between “emulation” and “virtualization?”
Emulation is used when the source CPU type (physically present) is different from the target CPU type (the CPU that a program is compiled for). For example, Apple desktops switched from IBM CPU to Intel CPU, and old software used Rosetta to run on emulated IBM CPU.
Virtualization allows a guest OS to run as an application on a host OS.
What is the difference between “full virtualization” and “para-virtualization?”
In full virtualization, the guest is an original OS and wants to manage the memory, perform protection, etc. In para-virtualization, guest OS is designed to run as a guest in a virtual environment and is aware of other operating systems, and knows its limitations.
What are the three types of “cloud computing?”
Private, public, hybrid
What are the three advantages of a “multiprocessor system” over a single processor?
1- Increased throughput
2- Lower cost than using a collection of single processors
3- Reliability is higher, and the system is more fault-tolerant
What is the difference between “symmetric” and “asymmetric” multiprocessors?
Asymmetric multiprocessor is a CPU scheduling method in which all scheduling decisions, I/O processing, and other system activities are handled by a single processor — the master server. The other processors execute only user code. This is a simple method because only one core accesses the system data structures, reducing the need for data sharing. The downfall of this approach is that the master server becomes a potential bottleneck where overall system performance may be reduced. Symmetric multiprocessor (SMT) is the standard approach for supporting multiprocessors where each processor is self-scheduling.
What are the five activities of “process management?”
1- Creating and deleting both user and system processes
2- Suspending and resuming processes
3- Providing mechanisms for process synchronization
4 -Providing mechanisms for process communication
5- Providing mechanisms for deadlock handling
What is the difference between “program” and “process”?
A program is a collection of instructions and is a passive entity. A process is a program in execution and is an active entity.
Draw Von Neumann’s architecture of a computer.
sketch!
What is a memory unit exposed to?
1- A stream of addresses + read requests
2- A stream of addresses + data and write requests
How long does one memory access take?
It takes many CPU cycles.
AMAT= cache-hit-time+ miss-rate*miss-penalty