Final Exam Flashcards
True or False: As a concept, virtual machines can exist outside and inside the operating system.
False
True or False: We do not need hardware and software to be able to store data persistently
False
Each process accesses its own private: Select one: a. Virtual machine b. Virtual source code c. Virtual address space d. Virtual client
Virtual address space
Why did Linus Torvalds borrow UNIX concept, but not the code? Select one: a. Too complex b. Non-existent c. Too insecure d. Legal reasons
Legal reasons
True or False: When a program runs, the primary goal is to make the system easy to use.
True
Memory is just an array of bytes; to read memory, one must specify \_\_\_\_\_\_\_ to be able to access the data stored there. Select one: a. Location b. Address c. Structure d. The Byte
Address
True or False: Programs are always accessing memory.
True
A running program does the following: Select one: a. Executes code b. Executes instructions c. Executes commands d. Executes source code
Executes instructions
To write (or update) memory, one must also specify \_\_\_\_\_\_ to be written to the given address? Select one: a. Library b. Address c. The data d. Thread
The data
What other name is an OS sometimes called: Select one: a. Resource manager b. Administrator c. Executor d. Master Control Program
Resource manager
True or False: PIDS are used to name processes in the UNIX O/S.
True
True or False: The process list is a data structure.
True
The Windows CreateProcess() system call creates a new process. What is the equivalent system call in UNIX: Select one: a. NTCreateProcess() b. process() c. fork() d. getpid()
fork()
The process states include all of the following except: Select one: a. Blocked b. Stopped c. Ready d. Running
stopped
What technique uses the OS to create an illusion by virtualizing the CPU and running one process, then stopping it and running another? Select one: a. Virtualization b. Context switch c. Scheduling d. Time sharing
Time sharing
What system call is used to send signals to a process, including directives to go to sleep, or die: Select one: a. API b. fork() c. kill () d. wait ()
kill()
A parent can be made to wait for a child process to finish what it has been doing by which command? Select one: a. PID b. Hello World c. Prompt > d. wait() system call
wait() system call
In early (or simple) operating systems, the loading process is done: Select one: a. One at a time b. Eagerly c. In groups d. At compile time
Eagerly
True or False: The natural counterpart of time sharing is space sharing, where a resource is divided (in space) among those who wish to use it.
True
Which of the following statements is incorrect?
Select one:
a. An operating system provides an environment for the execution of programs.
b. An operating system manages system resources.
c. Operating systems provide both command line as well as graphical user interfaces.
d. Operating systems must provide both protection and security.
Operating systems provide both command line as well as graphical user interfaces.
True or False: The shell is just a user program.
True
A process may transition to the Ready state by which of the following actions? Select one: a. Completion of an I/O event b. Awaiting its turn on the CPU c. Newly-admitted process d. All of the above
All of the above
All of the following are Machine States except: Select one: a. Address space b. Registers c. Memory d. API
API
This system call is useful when you want to run a program that is different from the calling program: Select one: a. API b. fork() c. exec() System Call d. wait ()
exec() System Call
\_\_\_\_\_ provide(s) an interface to the services provided by an operating system. Select one: a. Shared memory b. System calls c. Simulators d. Communication
System calls
True or False: Application programmers typically use an API rather than directory invoking system calls.
True
True or False: A running program is not a process.
False
True or False: The register context will not hold the contents of its registers.
False
True or False: UNIX pipes are implemented with the execvp() system call. This is where the output of one process seamlessly is used as input to the next, and long and useful chains of commands can be strung together.
False
True or False: MenuMeters (from Raging Menace software) runs on our PC toolbars.
False
True or False: Address space can be shared or dedicated to users.
True
If a programmer prints out the address of a program its always? Select one: a. Physical b. Combination c. Virtual d. Single
Virtual
True or False: A dual-core system requires each core has its own cache memory.
False
What is a fundamental problem of MQMS: Select one: a. Scalability b. Locking c. Load Imbalance d. Migration
Load Imbalance
True or False: Multithreaded applications can spread work across multiple CPUs and thus run faster when given more CPU resources.
True
True or False: The multiple-queue approach (MQMS) scales better than the single-queue approach (SQMS).
True
True or False: Adding more CPUs will make a single application run faster.
False
True or False: Multicore processors contain one CPU cores on a single chip.
False
The fundamental difference between single-CPU hardware and multi-CPU hardware? Select one: a. Temporal Locality b. Spatial Locality c. Caches d. Time sharing
Caches
True or False: Interactivity refers to single users on the same system
False
True or False: Cache coherency involves ensuring that multiple caches store the most updated version of the stored data.
True
True or False: If you have a single CPU, hardware caches will help the processor run programs faster.
True
Putting all jobs that need to be scheduled into a single queue is called:
Select one:
a. Single queue multiprocessor scheduling
b. Single queue multilocking scheduling
c. Single queue multi scheduling
d. None of the Above
Single queue multiprocessor scheduling
\_\_\_\_\_\_\_\_\_\_ is when each cache pays attention to memory updates by observing the bus that connects them to main memory. When a CPU then sees an update for a data item it holds in its cache, it will notice the change and either invalidate its copy or update it. Select one: a. Cache Coherence b. Bus Snooping c. Lock-free d. Locality
Bus Snooping
The address can be used by all of the following except: Select one: a. Heap b. Program code c. Registers d. None
Registers
Cache Affinity means run process on: Select one: a. Same CPU b. Different CPU c. Multiple CPU’s d. One CPU
Same CPU
Which of the following statements are false with regards to the Linux CFS scheduler?
Select one:
a. Each task is assigned a proportion of CPU processing time.
b. Lower numeric values indicate higher relative priorities.
c. There is a single, system-wide value of vruntime.
d. The scheduler doesn’t directly assign priorities.
There is a single, system-wide value of vruntime.
What technique is used to prevent threads from removing the same head element? Select one: a. Locking b. Threading c. Mutex d. Sychronization
Locking
Load imbalance can be handled by: Select one: a. Multiple queues b. Multiple CPUs c. Migration d. Work stealing
Migration