Quiz 1
.docx
keyboard_arrow_up
School
University of Phoenix *
*We aren’t endorsed by this school
Course
4100
Subject
Computer Science
Date
Feb 20, 2024
Type
docx
Pages
6
Uploaded by lashee86
n 1
1 Which part of the memory allocated to a process is responsible for storing dynamically allocated data?
The machine instructions.
The static data.
The execution stack.
The heap.
Question 2
1 / 1
point
What is a system call?
An asynchronous signal sent to a processor by another device.
A hardware event caused by user program behavior.
A procedure called by a process to request the kernel to perform a privileged operation.
A signal generated by the kernel that notifies a process of an event.
Question 3
1 / 1
point
Which of the following does
not
result in a switch from kernel mode to user mode?
An interrupt is generated by an I/O device.
A process is loaded into memory and is ready to execute its first instruction.
The kernel switches from the current process to a different process.
The kernel finishes processing an interrupt.
Question 4
1 / 1
point
When a programmer attempts to execute an illegal instruction, which of the following occurs?
An external device generates an interrupt.
A processor exception is generated.
The program makes a system call.
None of the above.
Question 5
1 / 1
point
Which of the following is difficult to do using a base-and-bound
approach to protecting memory?
Determine if a memory access is within the accepted address range.
Keeping track of the memory allocated to each process.
Giving the kernel unlimited access to memory.
Relocating a process to another location in memory.
Question 6
1 / 1
point
Which of the following performance metrics measures the additional resource cost of implementing an abstraction?
Overhead.
Fairness.
Response time.
Throughput.
Question 7
0 / 1
point
Which of the following best describes a time-sharing operating
system?
A multiuser system that operates on a queue of jobs.
A system that supports multiple simultaneous network connections.
A set of I/O routines for a single user system.
A system that processes input events to support interactive computing.
Question 8
1 / 1
point
Which of the following roles is an operating system playing when it provides libraries for a graphical interface so that applications can have the same look and feel?
Referee (managing resources)
Illusionist (abstracting the hardware)
Glue (providing common services)
None of the above
Question 9
1 / 1
point
Which of the following roles is an operating system playing when it determines which application should run next on a processor?
Referee (managing resources)
Illusionist (abstracting the hardware)
Glue (providing common services)
None of the above
Question 10
1 / 1
point
Which of the following roles is an operating system playing when it gives each application its own set of unlimited contiguous memory addresses?
Referee (managing resources)
Illusionist (abstracting the hardware)
Glue (providing common services)
None of the above
Question 11
1 / 1
point
When a kernel creates a new process, which of the following actions is performed while in user mode?
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
operatıng systemsThe figure on the right shows the operation of the read system call in general (count-read(fd,buffer,nbytes)).What does itmean if the operating system sends a value of 200 to the library procedure at arrow 9?
arrow_forward
Is it more efficient to employ threads that operate at the user
level as opposed to those that operate at the kernel level? What
sets apart threads that run on the user level from those that run
on the kernel level? Is there ever a point in time when one kind is
more advantageous than another?
arrow_forward
There may be situations when user-level threads are preferable than kernel-level threads. User- and kernel-level threads vary in what ways? Does one kind outperform the others in a given situation?
arrow_forward
Is there a circumstance where user-level threads are superior over kernel-level threads? What are the differences between user-level and kernel-level threads? Is there a circumstance in which one kind is better than the rest?
arrow_forward
There are 5 sub-questions in this topic, each sub-question has 8 points, totaling
1.What are the main purposes of an operating system?
2. Which states do the process have? Draw a process state diagram.
3. Explain the difference between preemptive and non-preemptive scheduling.
4. Name two differences between logical and physical addresses.
5. Explain the purpose of the open() and close() operations
arrow_forward
What are the benefits of employing threads on the user level as opposed to threads on the kernel level? What are the key differences between threads running at the user level and those running at the kernel level? Is there ever a circumstance in which one kind would be more desirable than the other?
arrow_forward
.
An executing process must be loaded entirely in main memory.What kind of a memory organization is this?
arrow_forward
Examine the distinction between threads run by the kernel and those run by the user.
arrow_forward
User-level threads versus kernel-level threads—which is superior? What sets user-level threads distinct from kernel-level threads? Is it ever the case that one sort is better than the other?
arrow_forward
What's the difference between a thread running in the user's process space and one running in the kernel? Is there a favored species among the alternatives?
arrow_forward
Which of the following is true?
Select one:
In general, creation time of a process is faster than creation time of a thread within a program
In general, communication between two independent processes is faster than communication between two
threads
Parent and child processes share same instruction counter
Threads of a process can share data via global variables
In a multithreaded process each thread shares the instruction counter of the process
arrow_forward
Please elaborate on the following points.
A. What is the difference between user and kernel threads?
B. What are Multi-threading Models?
arrow_forward
Consider an environment in which there is a one-to-one mapping between user-level threads and kernel-level threads that allows one or more threads within a process to issue blocking system calls while other threads continue to run. Explain why this model can make multithreaded programs run faster than their single-threaded counterparts on a uniprocessor computer.
arrow_forward
Talk about one of the issues that might crop up in an operating system when several processes are all trying to execute at the same time.
arrow_forward
Discuss a problem that arises when several processes are running at the same time in an operating system.
arrow_forward
Is the usage of user-level threads superior than kernel-level threads? What is the difference between user-level threads and kernel-level threads? Is there ever a period when one kind is superior than another?
arrow_forward
Is there ever a situation in which using threads at the user level is preferable than using threads at the kernel level? What are the key distinctions between the threads that run on the user level and those that run on the kernel level? Is there ever a situation in which a certain variety is preferable to the others?
arrow_forward
In the context of scheduling and dispatching of processes on a single-core processor,
a. What is the purpose of a context switch?
b. Describe the steps, in order, taken by a kernel to context-switch between processes.
arrow_forward
Talk about a problem with shared processing in an operating system.
arrow_forward
if ten threads are running within a program and one of them request I/O and blocks in the kernel, what will happen to the rest of the threads if they are:
A kernel managed
B user managed
what will happen if the same task is accomplished using multitasking rather than multithreading?
arrow_forward
Hello. Please answer the attached Operating Systems questions correctly and completely.*If you answer the questions correctly and completely, I will give you a thumbs up. Thanks.
arrow_forward
Give me Answer fast.
arrow_forward
a) List the main tasks of an Operating System.
b) Draw the main elements of a computer system.
c) What is an interrupt? How it is generated? What is a trap?
d) What is an interrupt vector?
e) What is a system call? Which types of system call do you know?
f) In a time-sharing environment, several users share the system simultaneously: How can we reach MM protection?
g) In a time-sharing environment, several users share the system simultaneously: How can we reach I/O protection?
h) Draw the diagram of 5 process states. What is the semantic of every state? How does a process move from one state to the other?
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Related Questions
- operatıng systemsThe figure on the right shows the operation of the read system call in general (count-read(fd,buffer,nbytes)).What does itmean if the operating system sends a value of 200 to the library procedure at arrow 9?arrow_forwardIs it more efficient to employ threads that operate at the user level as opposed to those that operate at the kernel level? What sets apart threads that run on the user level from those that run on the kernel level? Is there ever a point in time when one kind is more advantageous than another?arrow_forwardThere may be situations when user-level threads are preferable than kernel-level threads. User- and kernel-level threads vary in what ways? Does one kind outperform the others in a given situation?arrow_forward
- Is there a circumstance where user-level threads are superior over kernel-level threads? What are the differences between user-level and kernel-level threads? Is there a circumstance in which one kind is better than the rest?arrow_forwardThere are 5 sub-questions in this topic, each sub-question has 8 points, totaling 1.What are the main purposes of an operating system? 2. Which states do the process have? Draw a process state diagram. 3. Explain the difference between preemptive and non-preemptive scheduling. 4. Name two differences between logical and physical addresses. 5. Explain the purpose of the open() and close() operationsarrow_forwardWhat are the benefits of employing threads on the user level as opposed to threads on the kernel level? What are the key differences between threads running at the user level and those running at the kernel level? Is there ever a circumstance in which one kind would be more desirable than the other?arrow_forward
- . An executing process must be loaded entirely in main memory.What kind of a memory organization is this?arrow_forwardExamine the distinction between threads run by the kernel and those run by the user.arrow_forwardUser-level threads versus kernel-level threads—which is superior? What sets user-level threads distinct from kernel-level threads? Is it ever the case that one sort is better than the other?arrow_forward
- What's the difference between a thread running in the user's process space and one running in the kernel? Is there a favored species among the alternatives?arrow_forwardWhich of the following is true? Select one: In general, creation time of a process is faster than creation time of a thread within a program In general, communication between two independent processes is faster than communication between two threads Parent and child processes share same instruction counter Threads of a process can share data via global variables In a multithreaded process each thread shares the instruction counter of the processarrow_forwardPlease elaborate on the following points. A. What is the difference between user and kernel threads? B. What are Multi-threading Models?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning