Midterm Portion Flashcards
Chapter 1, 3, 6.
What is an Operating System (OS) ?
A program that acts as an intermediary between the user of a computer and the computer hardware.
One of the names of the OS is “Manager”. (True or False)
True.
What the Operating System (OS) goals?
1- Execute user programs & make solving user problems easier.
2- Make the computer system convenient to use.
3- Use the computer hardware in an efficient manner.
What are the 4 components of the computer system?
1- Hardware (CPU, memory, Inputs/Outputs..).
2- Operating System.
3- Application programs (web browsers, video games..).
4- Users.
Give examples of users that make up 1 of the computer system components :-
1- People.
2- Machines.
3- Other computers.
What Operating systems do?
1- Ease of use.
2- Good performance.
3- Make users for big computers (mainframe or minicomputer) happy.
One of the names of the OS is “Resource allocator”. (True or False)
True.
Why is the Operating System called “resource allocator”?
1- Manages all resources.
2- Decides between conflicting requests for fair resource use.
One of the names of the OS is “Control program”. (True or False)
True.
Why is the Operating System called “Control program”?
Controls execution of programs to prevent errors and improper use of the computer.
What is kernel?
Part of the OS, the one program running at all times on the computer.
Aside from Kernel what is everything else is considered as?
1- A system program.
2- An application program.
What is a bootstrap program?
its loaded at power-up or reboot
What are the details of the bootstrap program?
1- Typically stored in ROM or EPROM, generally known as “firmware”
2- Initializes all aspects of system
3- Loads operating system kernel and starts execution
What are the resources of the Operating System (OS) ?
1- CPU.
2- Memory.
3- Input devices.
4- Output devices.
5- Secondary storage.
What are examples of Input devices ?
1- Mouse.
2- Keyboard.
What are examples of Output devices ?
1- Monitor.
2- Printer.
What are examples of Secondary storage?
Disks
What is a hardware interrupt?
Communication between CPU & hardware devices.
What is a trap or exception?
A software interrupt.
What causes software interrupt?
Its caused by either an “Error” or “User request”.
One of the names of the OS is “Interrupt Driven”. (True or False)
True.
What is Main Memory and its main details?
Large storage media that the CPU can access directly.
- Main details :-
1- Random access.
2- volatile.
What is Secondary storage and its main details?
Extension of main memory that provides large “nonvolatile” storage capacity.
- Main details :-
1- nonvolatile.
What is the “criteria” to organize storage systems in hierarchy?
1- Cost.
2- Speed.
3- Volatility.
What is Caching?
copying information into faster storage system; main memory can be viewed as a cache for secondary storage.
One of the names of the OS is “Device Driver”. (True or False)
True.
What if “Cache” is checked to determine if it has information?
1- if it has information, Information is used directly from the Cache.
2- if it doesn’t have information, Data copied to cache and used there.
What is “Multiprocessors Systems” also known as?
1- parallel systems.
2- tightly-coupled systems.
What are the advantages of the “Multiprocessors Systems” ?
1- Increased throughput.
2- Economy of scale.
3- Increased reliability.
What are the types of “Multiprocessing Systems”?
1- Asymmetric Multiprocessing (each processor is assigned a special task)
2- Symmetric Multiprocessing (each processor performs all tasks)
What is “Clustered Systems”?
Multiple systems working together sharing storage via a storage-area network.
What are the types of “Clustered Systems”?
1- Asymmetric clustering (has one machine in hot-standby mode)
2- Symmetric clustering (has multiple nodes running applications, monitoring each other)
What is the difference between “Multiprogramming” & “Timesharing” ?
1- Multiprogramming :-
- batch system.
- job scheduling.
- For mainframes.
2- Timesharing :-
- Multitasking.
- Interactive.
- For windows.
What is “Dual-mode” ?
An operation that allows OS to protect itself and other system components.
What are the modes in “Dual-mode” ?
1- User mode.
2- Kernel mode.
What does the “Mode bit” provides in Dual-mode?
1- to know which mode is running.
2- gives privilege to kernel mode.
3- it changes between the modes.
What is a process?
A program in execution.
A Program is a Passive entity. (True or False)
True.
A Process is a Active entity. (True or False)
True.
What are the resources of a Process?
1- CPU.
2- Memory.
3- Input.
4- Output.
5- Files.
6- Data.
What does Process termination require?
Reclaim of any reusable resources.
What are the OS activities for Process management?
1- Creating and deleting both user and system processes.
2- Suspending and resuming processes.
3- Providing mechanisms for process synchronization, communication and deadlock.
What are the OS activities for Memory management?
1- Keeping track of which parts of memory are currently being used and by whom.
2- Deciding which processes and data to move into and out of memory.
3- Allocating and deallocating memory space.
What are the OS activities for Storage management?
1- Creating and deleting files and directories.
2- Primitives to manipulate files and directories.
3- Mapping files onto secondary storage.
4- Backup.
What are the OS activities for Mass-Storage management?
1- Free-space management.
2- Storage allocation.
3- Disk scheduling.
What is the Typical size for Registers? its managed by? its backed by?
Typical size : < (Less than) 1 KB.
Managed by : Compiler.
Backed by : Cache.
What is the Typical size for Cache? its managed by? its backed by?
Typical size : < (Less than) 16 MB.
Managed by : Hardware.
Backed by : Main memory.
What is the Typical size for Main memory? its managed by? its backed by?
Typical size : < (Less than) 64 GB.
Managed by : OS (Operating system).
Backed by : Disk.
What is the Typical size for Solid state disk? its managed by? its backed by?
Typical size : < (Less than) 1 TB.
Managed by : OS (Operating system).
Backed by : Disk
What is the Typical size for Magnetic disk? its managed by? its backed by?
Typical size : < (Less than) 10 TB.
Managed by : OS (Operating system).
Backed by : Disk or Tape.
What is Protection?
Any mechanism for controlling access of processes or users to resources defined by the OS.
What is Security?
Defense of the system against internal and external attacks.
Give examples of Computing Environments (7 at least) :-
1- Traditional.
2- Mobile.
3- Distributed.
4- Client-Server.
5- Peer-to-Peer.
6- Virtualization.
7- Cloud Computing.
8- Real-Time Embedded System.
9- Open-Source OS.
What are Traditional Computing Environments ?
stand-alone general purpose machines.
What are Mobile Computing Environments ?
Handheld smartphones, tablets, etc.
What are Distributed Computing Environments ?
Systems networked together.
What are the TCP/IP network in Distributed ?
1- Local area network.
2- Wide are network.
3- Metropolitan area network.
4- Personal area network.
What is Peer-to-Peer Computing Environment?
Another model of Distributed system.
How does Peer-to-Peer not distinguish clients and servers?
1- All nodes are considered peers.
2- May each act as client, server or both.
3- Node must join P2P network.
What is Virtualization Computing Environment?
Allows operating systems to run applications within other OSes.
What is an example of Virtualization?
Apple laptop running MAC OS X host, Windows as guest.
What is Cloud Computing?
Delivers computing, storage, applications as a service across a network.
Example of Real-Time Embedded Systems?
Real-Time Operating System (OS) .
What is a Process?
A program in execution.
A Process execution must progress in what fashion?
A sequential fashion.
What is a Stack?
Containing temporary data, Functions parameter, return addresses & local variables.
What is a Heap?
Containing memory dynamically allocated during run time.
A Program is a passive entity. (True or False)
True.
A Process is a active entity. (True or False)
True.
When does a program become a process?
When an executable file is loaded into memory.
One program can be several processes. (True or False)
True.
What are the 5 process states?
1- New.
2- Running.
3- Waiting.
4- Ready.
5- Terminated.
What is the New process state?
The process is being created.
What is the Running process state?
Instructions are being executed.
What is the Waiting process state?
The process is waiting for some event to occur.
What is the Ready process state?
The process is waiting to be assigned to a processor.
What is the Terminated process state?
The process has finished execution.
What is Process Control Block?
Information for each process.
What is another name for Process Control Block?
Task Control Block.
What is a Process Scheduler?
selects among available processes for next execution on CPU.
What is a Short-Term Scheduler?
Also known as CPU Scheduler, selects which process should be executed next and allocates CPU.
What is a Long-Term scheduler?
Also known as Job scheduler, selects which processes should be brought into the ready queue.
What is a Medium-Term scheduler?
Can be added if degree of multiple programming needs to decrease.
What is Swapping?
Remove process from memory, store on disk, bring back in from disk to continue execution.
What are the IOS (IPhone) process?
1- Single foreground process for user interface.
2- Multiple background processes for memory and running.
What is the Android (Samsung) process?
Runs foreground and background, with fewer limits.
What are the Resource sharing options for Process Creation?
1- Parent and children share all resources.
2- Children share subset of parent’s resources.
3- Parent and child share no resources.
What are the Execution options for Process Creation?
1- Parent and children execute concurrently.
2- Parent waits until children terminate.
What is Process Termination?
Process executes last statement and then asks the operating system to delete it using the exit() system call.
What are the 3 processes for Google Chrome Browser?
1- Browser.
2- Render.
3- Plug-in.
What is “Independent process” ?
process cannot affect or be affected by the execution of another process.
What is “Cooperating process” ?
process can affect or be affected by the execution of another process.
What are the Reasons or Advantages of cooperation process?
1- Information sharing.
2- Speed-up.
3- Modularity.
4- Convenience.
What is needed for implementation of a physical communication link?
1- Shared memory.
2- Hardware bus.
3- Network.
What is needed for implementation of a logical communication link?
1- Direct or Indirect.
2- Synchronous or Asynchronous.
3- Automatic or explicit buffering.
What are the properties of “Direct” communication links?
1- Links are established automatically.
2- A link is associated with exactly one pair of communicating processes.
3- Between each pair there exists exactly one link.
4- The link may be unidirectional, but is usually bi-directional.
What happens to the following in terms of “Direct Communication” ?
Send (A, message) : _________________________.
Receive (B, message) : _________________________.
Send (A, message) : send a message to process A.
Receive (B, message) : receive a message from process B.
What are the properties of “Indirect” communication links?
1- Link established only if processes share a common mailbox.
2- A link may be associated with many processes.
3- Each pair of processes may share several communication links.
4- Link may be unidirectional or bi-directional.
What happens to the following in terms of “Indirect Communication” ?
Send (C, message) : _________________________.
Receive (C, message) : _________________________.
Send (C, message) : send a message to mailbox C.
Receive (C, message) : receive a message from mailbox C.
What is “Blocking” considered?
Its considered Synchronous.
What happens in “Blocking send”?
The sender is blocked until the message is received.
What happens in “Blocking receive”?
The receiver is blocked until a message is available.
What is “Non-blocking” considered?
Its considered Asynchronous.
What happens in “Non-blocking send”?
The sender sends the message and continue.
What happens in “Non-blocking receive”?
The receiver receives:
- A valid message or Null message.
What are the communications in Client-Server Systems?
1- Sockets.
2- Remote Procedure Calls.
2- Pipes.
4- Remote Method Invocation (Java).
What is a “Socket”?
An endpoint for communication.
What are “Pipes”?
Acts as a channel allowing two processes to communicate.
When does CPU scheduling decisions take place?
1- Switching from running to waiting state.
2- Switching from running to ready state.
3- Switching from waiting to ready.
4- Terminates.
what is “Non-preemptive”?
The process from 1 to 4, the process cannot be interrupted has to run until the end.
What is “Preemptive”?
The process from 5 and up, in the ready queue.
What are the details of Preemptive?
1- Shared data.
2- Kernel mode.
3- Interrupts during crucial OS activities.
What is the “Dispatcher Module”?
Gives control of the CPU to the process selected by the short-term scheduler.
What does the Dispatcher Module involve?
1- Switching context.
2- Switching to user mode.
3- Jumping to the location in the user program to restart that program.
What is “Dispatch lantency”?
Time it takes for the dispatcher to stop one process and start another running.
What are the CPU scheduling criteria?
1- CPU utilization.
2- Throughput.
3- Turnaround time.
4- Waiting time.
5- Response time.
What is “CPU utilization”?
keep the CPU as busy as possible.
What is “Throughput”?
number (#) of processes that complete their execution per time unit.
What is “Turnaround time”?
amount of time to execute a particular process.
What is “Waiting time”?
amount of time a process has been waiting in the ready queue.
What are the CPU scheduling algorithm optimization criteria?
1- Max CPU utilization.
2- Max Throughput.
3- Min Turnaround time.
4- Min Waiting time.
5- Min Response time.
What is “Starvation” in CPU Priority Scheduling?
Low priority processes may never execute.
What is “Aging” in CPU Priority Scheduling?
As time progresses increase the priority of the process.
What are the difference of “foreground” & “background” of Multilevel Queue?
Foreground :-
1- Interactive.
2- Uses RR. (Round Robin)
3- Uses 80% of the system.
Background :-
1- Batch.
2- Uses FCFS. (First- Come, First-Served)
3- Uses 20% of the system.
What is “Load balancing”?
Attempts to keep workload evenly distributed.
What is “Push migration”?
Periodic task checks load on each processor, and if found pushes task from overloaded CPU to other CPU’s.
What is “Pull migration”?
Idle processors pulls waiting task from busy processor.
What is “Soft real-time systems”?
No guarantee as to when critical real-time process will be scheduled.
What is “Hard real-time systems”?
Task must be serviced by its deadline.