OS Admin and Security - Chapter 3

______ is a program in execution
Process
Executable file
Process execution must progress in ______fashion
Direct
Sequential
The program code, also called ______
Text section
Program counter
Stack
Data section
Current activity including ______, processor registers
Text section
Program counter
Stack
Data section
______ containing temporary data
Text section
Program counter
Stack
Data section
Function parameters, return addresses, local variables
Text section
Program counter
Stack
Data section
______ containing global variables
Text section
Program counter
Stack
Data section
______ containing memory dynamically allocated during run time, such as Linked List
Program counter
Stack
Data section
Heap
Heap containing memory dynamically allocated during run time, such as ______
Array list
Linked list
Program is ______
Active
Passive
Process is ______
Active
Passive
Executable file is also known as ______
Process
Program
Which of the following statements is true?
Process becomes program when executable file loaded into memory
Program becomes process when executable file loaded into memory
Execution of program started via GUI ______, command line entry of its name, etc.
Mouse clicks
USB bus
Which of the following statements is true?
One program can be one process only
One program can be several processes
As a process executes, it changes ______
State
Hardware
The process is being created
New
Running
Waiting
Ready
Instructions are being executed
New
Running
Waiting
Ready
The process is waiting for some event to occur
New
Running
Waiting
Ready
The process is waiting to be assigned to a processor
New
Running
Waiting
Ready
The process has finished execution
Running
Waiting
Ready
Terminated
When CPU switches from one process to another process, the system must ______ of the old process and load the saved state for the new process via a context switch
Suspend the state
Save the state
When CPU switches from one process to another process, the system must save the state of the old process and load the ______ for the new process via a context switch
Saved state
Memory
When CPU switches from one process to another process, the system must save the state of the old process and load the saved state for the new process via a ______
Power switch
Context switch
Context of a process represented in the ______
Process Control Block (PCB)
Process Permission Circle (PPC)
Context-switch time is ______; the system does no useful work while switching
Beneath
Overhead
Which of the following statements is true?
Context-switch time is overhead; the system does no useful work while switching
Context-switch time is underneath; the system does useful work while switching
Process Control Block (PCB) is also known as ______
Task permission circle
Task control block
Information associated with each process
Process Control Block (PCB)
Process Permission Circle (PPC)
Running, waiting, etc
Process state
Program counter
CPU registers
CPU scheduling information
Location of instruction to next execute
Process state
Program counter
CPU registers
CPU scheduling information
Contents of all process-centric registers
Process state
Program counter
CPU registers
CPU scheduling information
Priorities, scheduling queue pointers
CPU scheduling information
Memory-management information
Accounting information
I/O status information
Memory allocated to the process
CPU scheduling information
Memory-management information
Accounting information
I/O status information
CPU used, clock time elapsed since start, time limits
CPU scheduling information
Memory-management information
Accounting information
I/O status information
I/O devices allocated to process, list of open files
CPU scheduling information
Memory-management information
Accounting information
I/O status information
Maximize CPU use, quickly switch processes onto CPU for time sharing
Process scheduling
Work scheduling
______selects among available processes for next execution on CPU
Work scheduler
Process scheduler
Maintains scheduling queues of processes
Process Scheduling
Work scheduling
Process scheduling maintains ______ of processes
Program counter
Scheduling queues
Set of all processes in the system
Job queue
Ready queue
Device queue
None of the above
Set of all processes residing in main memory, ready and waiting to execute
Job queue
Ready queue
Device queue
None of the above
Set of processes waiting for an I/O device
Job queue
Ready queue
Device queue
None of the above
Which one of the following statements is true?
Processes migrate a single queue
Processes migrate among various queues
Selects which processes should be brought into the ready queue
Long-term scheduler (Job scheduler)
Medium-term scheduler (Swapping)
Short-term scheduler (CPU scheduler)
None of the above
Long-term scheduler is also known as ______
Job scheduler
Swapping
CPU scheduler
None of the above
Medium-term scheduler is also known as ______
Job scheduler
Swapping
CPU scheduler
None of the above
Short-term scheduler is also known as ______
Job scheduler
Swapping
CPU scheduler
None of the above
The ______ controls the degree of multiprogramming, I.e. How many process/programs could be brought into the ready queue.
Long-term scheduler (Job scheduler)
Medium-term scheduler (Swapping)
Short-term scheduler (CPU scheduler)
None of the above
The long-term scheduler controls the ______
Degree of focusing
Degree of multiprogramming
Spends more time doing I/O than computations, many short CPU bursts
I/O-bound process
CPU-bound process
Spends more time doing computations; few very long CPU bursts
I/O-bound process
CPU-bound process
______ strives for good process mix I.e., a good combination of I/O bound, and CPU bound processes.
Long-term scheduler (Job scheduler)
Medium-term scheduler (Swapping)
Short-term scheduler (CPU scheduler)
None of the above
Long-term scheduler strives for good ______
Process divide
Process mix
Selects which process should be executed next and allocates CPU
Long-term scheduler (Job scheduler)
Medium-term scheduler (Swapping)
Short-term scheduler (CPU scheduler)
None of the above
______ can be added if degree of multiple programming needs to decrease
Long-term scheduler (Job scheduler)
Medium-term scheduler (Swapping)
Short-term scheduler (CPU scheduler)
None of the above
The medium term scheduler removes a process from memory, and then stores the process on the disk, as suspended process in ______ it is called swap out
Virtual memory
Memory (RAM)
The medium term scheduler removes a process from memory, and then stores the process on the disk, as suspended process in virtual memory, it is called ______
Swap in
Swap out
When the process is brought back in memory (RAM) from the disk (Virtual Memory), it is called ______
Swap in
Swap out
Some systems / early systems allow only one process to run, others suspended
True
False
Single ______ process- controlled via user interface
Foreground
Background
Multiple ______ processes– in memory, running, but not on the display, and with limits
Foreground
Background
Limits of Multitasking in Mobile Systems: Single, short task, receiving notification of events, specific long-running tasks like audio playback
True
False
Which one of the following statements is true?
Android runs foreground only, with more limits
Android runs foreground and background, with fewer limits
Background process uses a ______ to perform tasks
Service
Product
Which one of the following statements is true?
Service stop running if background process is suspended
Service can keep running even if background process is suspended
Which one of the following statements is true?
Service has no user interface, small memory use
Service has a user interface, huge memory use
Operating System must provide mechanisms for process creation, termination, and so on
True
False
Which one of the following statements is true?
Children processes create parent process, which, in turn create other processes, forming a tree of processes
Parent process create children processes, which, in turn create other processes, forming a tree of processes
Parent process create children processes, which, in turn create other processes, forming a ______ of processes
Tree
Formation
Process identified and managed via a ______
Program identifier (pid)
Process identifier (pid)
Parent and children share all resources - Children share subset of parent’s resources - Parent and child share no resources
Resource sharing options
Execution options
Address space
None of the above
Parent and children execute concurrently - Parent waits until children terminate
Resource sharing options
Execution options
Address space
None of the above
Child duplicate of parent - Child has a program loaded into it
Resource sharing options
Execution options
Address space
None of the above
______ system call creates new process
Fork()
Exec()
Which one of the following statements is true?
Fork() system call used after a exec() to replace the process’ memory space with a new program
Exec() system call used after a fork() to replace the process’ memory space with a new program
Process executes last statement and asks the operating system to delete it
Exec()
Exit()
Wait()
Abort()
Output data from child to parent via ______
Exec()
Exit()
Wait()
Abort()
Process’ resources are deallocated by operating system
Exec()
Exit()
Wait()
Abort()
Parent may terminate execution of children processes
Exec()
Exit()
Wait()
Abort()
Child has exceeded allocated resources
Exec()
Exit()
Wait()
Abort()
Task assigned to child is no longer required
Exec()
Exit()
Wait()
Abort()
If no parent waiting, then terminated process is a ______
Zombie
Orphan
If parent terminated, processes are ______
Zombies
Orphans
Many web browsers ran as single process (some still do)
True
False
In old browsers, if one web site causes trouble, entire browser can hang or crash
True
False
Google Chrome Browser is ______
Single process
Multiprocess
______ process manages user interface, disk and network I/O
Browser
Renderer
Plug-in
None of the above
______ process renders web pages, deals with HTML, Javascript, new one for each website opened
Browser
Renderer
Plug-in
None of the above
______ process for each type of plug-in (such as Flash or QuickTime) in use.
Browser
Renderer
Plug-in
None of the above
Renderer runs in ______ restricting disk and network I/O, minimizing effect of security exploits
Linear
Sandbox
Which one of the following statement is true?
Renderer runs in sandbox freeing disk and network I/O, maximizing effect of security exploits
Renderer runs in sandbox restricting disk and network I/O, minimizing effect of security exploits
Processes within a system may be ______ or cooperating
Independent
Dependent
Processes within a system may be independent or ______
Divided
Cooperating
______ process can affect or be affected by other processes, including sharing data
Independent
Cooperating
Information sharing - Computation speedup - Modularity - Convenience
Reasons for indpendent processes
Reasons for cooperating processes
Cooperating processes need ______
Interprocess Communication (IPC)
InterCPU Communcation (IPC)
What are the two models of Interprocess Communication (IPC)?
Whole memory - Message withholding
Shared memory - Message passing
Windows operating system uses ______ facility for interprocess communication, which is Message-passing centric.
Local procedure call (LPC)
Remote procedure call (RPC)
LPC Only works between ______
Processes on the different systems
Processes on the same system
LPC uses ______ to establish and maintain communication channels
Ports
Addresses
In communication in LPC: The client opens a handle to the subsystem’s ______ object.
Connection port
Connection request
Communication port
None of the above
In communication in LPC: The client sends a ______
Connection port
Connection request
Communication port
None of the above
In communication in LPC: The server creates two private ______ and returns the handle to one of them to the client.
Connection ports
Connection requests
Communication ports
None of the above
The client and server use the corresponding port handle to send messages or callbacks and to listen for replies.
True
False
______ is defined as an endpoint for communication
Socket
Stub
Pipe
None of the above
A number included at start of message packet to differentiate network services on a host
Loopback
Concatenation of IP address and port
Which one of the following statements is true?
The socket 161.25.19.8:1625 refers to port 161.25.19.8 on host 1625
The socket 161.25.19.8:1625 refers to port 1625 on host 161.25.19.8
Which one of the following statements is true?
Communication consists between a pair of sockets
Communication consists between more than two sockets
Which one of the following statements is true?
All ports above 1024 are unknown, used for standard services
All ports below 1024 are well known, used for standard services
Special IP address 127.0.0.1 to refer to system on which process is running
Loopback
Concatenation of IP address and port
Which IP is a loopback IP?
127.0.0.0
127.0.0.1
127.0.1.1
127.1.1.1
______ abstracts procedure calls between processes on networked systems
Local procedure call (LPC)
Remote procedure call (RPC)
______ only works between processes on the same system
Local procedure call (LPC)
Remote procedure call (RPC)
______ uses ports (like mailboxes) to establish and maintain communication channels
Local procedure call (LPC)
Remote procedure call (RPC)
Client-side proxy for the actual procedure on the server
Socket
Stubs
Pipe
None of the above
The ______ locates the server, and pass the parameters to the remote procedure
Client-side stub
Server-side stub
The ______ receives this parameters, and performs the procedure on the server.
Client-side stub
Server-side stub
Which one of the following statements is true?
In RPC: After server executes the requested procedure, the output is sent back to client.
In RPC: After client executes the requested procedure, the output is sent back to server.
Which one of the following statements is true?
In RPC: The server receives the output, and continue the rest of the program
In RPC: The client receives the output, and continue the rest of the program
Acts as a conduit allowing two processes to communicate
Socket
Stubs
Pipe
None of the above
______ writes to one end (the write-end of the pipe)
Producer
Consumer
______ reads from the other end (the read-end of the pipe)
Producer
Consumer
Ordinary pipes are ______
Unidirectional
Bidirectional
Require parent-child relationship between communicating processes
Ordinary Pipes
Named Pipes
Which one of the following statements is true?
Ordinary Pipes are more powerful than Named Pipes
Named Pipes are more powerful than Ordinary Pipes
Name pipes are ______
Unidirectional
Bidirectional
No parent-child relationship is necessary between the communicating processes
Ordinary Pipes
Named Pipes
{"name":"OS Admin and Security - Chapter 3", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"______ is a program in execution, Process execution must progress in ______fashion, The program code, also called ______","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker