Shared Flashcard Set

Details

ops final
jkjk
42
Architecture
Pre-School
06/23/2009

Additional Architecture Flashcards

 


 

Cards

Term
From the user's point of view, which of the following is the OS mostly designed?
Definition
Ease of Use
Term
In the single processor system there is only one general purpose, what are the other processors used for?
Definition
True
Term
Which of the following are types of multi-processor system?
Definition
Asymmetric multiprocessing <br>
Symmetric multiprocessing 
Term
Which of the following operating system services is helpful for ensuring efficient operation of the system?
Definition
Resource allocation
Accounting
Protection and security
Term
Which of the following activities is the OS responsible for in connection to memory management?
Definition
Keeping track of which parts of memory are currently being used and by whom

Deciding which processes (or parts thereof) and data to move into and out of memory

Allocating and de-allocating memory space as needed

Term
What can we use to prevent a user program from returning control to the OS?
Definition
Timer
Term
Why does the CPU switch between multiple jobs in a Time Sharing OS?
Definition
the CPU switches frequently between multiple jobs so that users can interact with each program while it is running
Term
What is a process?
Definition
A program loaded into memory and executing
Term
What does Virtual memory allow?
Definition
a job to run while not completely in memory and to run programs that are larger than physical memory.
Term
Which two operating modes are, at the very least, required to ensure proper executing of the OS?
Definition
user mode
kernel mode
(supervisor, system, privileged)
mode bit indicates which mode it is in.
kernel(0) user (1)
Term
Which of these is one of the major categories of system calls?
Definition
Process Control
File Manipulation
Device Manipulation
Information Maintenance
Communications
Protection
Term
Which of these is file management related?
Definition
create/delete file
open, close
read, write, reposition
get/set file attributes
Term
Which of these is information maintenance related?
Definition
get/set time or date
get/set system data
get/set process, file, or device attributes
Term
Which of these states is valid for a process?
Definition
Waiting
Running
Ready
New
Terminated
Term
What processes are in the ready queue?
Definition
the processes that are residing in main memory and are waiting too execute
Term
Which of the following will NOT change the state of a process?
Definition

Creates a subprocess

forcibly removed from the system

sends an I/O request

Term
What is the job of the long term scheduler?
Definition
Choose which program to load into memory
Term
Which is a CPU bound process?
Definition
Generates I/O requests infrequently, using more of its time doing computations
Term
What is a "context switch"?
Definition
Saving the state of the current process and restoring a different process
Term
Which of the following is a typical reason to terminate a child process?
Definition
The child has exceeded its usage of the resources it has been allocated

The task assigned to the child is no logner required

The parent is exiting

Term
Cooperating processes require ________________ mechanism to allow an exchange of adata information
Definition
interprocess communication
Term
Which of the following is a logical method for implementing send()/receive() operations?
Definition
Direct or indirect communication
Synchronous or asynchronous
communication
Automatic or explicit buffering
Term
When using direct communication, the communication link has all the following properties expect one. Which is incorrect?
Definition
A link may be associated with more than two processes
Term
For indirect communication, what are the messages sent to or receieved from?
Definition
Mailboxes or ports
Term
What is the definition of blocking send?
Definition
The sending process is blocked until the message is received by the receiving process or by the mailbox
Term
There are three way to implement the temportay queues for indirect or direct communication. Which of these is incorrect
Definition
Zero capacity<br>
Bounded capacity<br>
Unbounded capacity
Term
What is an address generated by the CPU commonly referred to as?
Definition
Logical address
Term
What is a logical address usually referred to as?
Definition
Virtual address
Term
What is the run-time mapping from virtual to physical address done by?
Definition
A hardware device called the memory-management unit (MMU)
Term
What are the two levels that thread support can be provided at?
Definition
User, Kernel
Term
Which of the following is one of the issues to consider with multi-threaded programming
Definition

Cancellation

The fork() and exec() system calls
Scheduler activations
Signal handling
Thread pools
Thread-specific data

Term
When does the short-term scheduler select the next process from the ready queue?
Definition
when the CPU becomes idle
Term
When the OS supports kernel level threads the scheduling is based on what?
Definition
Threads, NOT PROCESSES
Term
The following Criteria are used for CPU scheduling
Definition
CPU utilization
Throughput
Turnaround Time
Waiting Time
Response Time
Term
When scheduling kernel level threads the ____ scope scheme is used to determine which thread runs.
Definition
System contentions
Term
What is a Deadlock?
Definition
When two or more processes/threads are waiting forever for an event that can be caused by only one of the waiting processes/threads
Term
The following are classic problems of synchronization.
Definition
Bounded-Buffer
Dining-Philosophers
Readers-Writers Problem
Term
When does mutual exclusion need to be applied?
Definition
Use of non-shareable resources
Term
What does no preemption mean?
Definition
If a process holds a resource and is preempted, all resources held stay held, until the process runs again
Term
Which Deadlock avoidance algorithms can be used to dynamically examine the resource allocations to ensure a circular wait condition does not exist?
Definition
safe state
resource allocation graph
Term
If there are several instances of a resource type in the system and you are checking for a deadlock, what structures do you need?
Definition
Available - vector
Allocated - matrix
Requests - matrix
Term
What option is a way to recover from a deadlock?
Definition
Process termination
Resource preemption
Abort all deadlock processes/threads
Supporting users have an ad free experience!