Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 1 fuera de 2 páginas
Examen

CSCI 3120 Chapter 6 Part 2 Final Exam Questions 100% Well Answered.

Document preview thumbnail
Vista previa 1 fuera de 2 páginas

Hardware could be utilized to solve the critical section problem, three forms of hardware solutions include: - Answer 1. Memory Barriers 2. Hardware Instructions 3. Atomic variables Hardware based solutions to the critical section problem are complicated as well as - Answer generally inaccessible to application programmers Mutex Lock - Answer A process must acquire the lock before entering a critical section; it them releases the lock when it exits the critical section aquire() - Answer aquires the lock release() - Answer releases the lock Only if a lock is available - Answer a call to acquire() succeeds A process that attempts to acquire a unavailable lock - Answer is blocked until the lock is released Spinlocks are nice because - Answer we dont need to do a context switch when a process must wait on a lock, we can just spin until the lock becomes available A semaphore S is an integer variable that, apart from initialization, is accessed - Answer only through two indivisible (atomic) operations: wait() and signal() Two types of semaphores - Answer Binary Semaphore (similar to mutex lock) - int range from 0 to 1 Counting semaphore - int 0 to N Counting semaphores can be used to - Answer control access to a finite number of resources Wait() does what - Answer used when process wishes to use resource, decrements the semaphore

Vista previa del contenido

CSCI 3120 Chapter 6 Part 2 Final Exam
Questions 100% Well Answered.
Hardware could be utilized to solve the critical section problem, three forms of hardware
solutions include: - Answer 1. Memory Barriers

2. Hardware Instructions

3. Atomic variables



Hardware based solutions to the critical section problem are complicated as well as - Answer
generally inaccessible to application programmers



Mutex Lock - Answer A process must acquire the lock before entering a critical section; it them
releases the lock when it exits the critical section



aquire() - Answer aquires the lock



release() - Answer releases the lock



Only if a lock is available - Answer a call to acquire() succeeds



A process that attempts to acquire a unavailable lock - Answer is blocked until the lock is
released



Spinlocks are nice because - Answer we dont need to do a context switch when a process must
wait on a lock, we can just spin until the lock becomes available



A semaphore S is an integer variable that, apart from initialization, is accessed - Answer only
through two indivisible (atomic) operations: wait() and signal()



Two types of semaphores - Answer Binary Semaphore (similar to mutex lock) - int range from
0 to 1

Counting semaphore - int 0 to N

Información del documento

Subido en
13 de mayo de 2025
Número de páginas
2
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$11.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
COCOSOLUTIONS
4.2
(37)
Vendido
220
Seguidores
16
Artículos
9308
Última venta
6 días hace




Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes