• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 9 páginas
Examen

CSCE 3600 Exam 2 Questions and Answers Fully Solved Latest Version

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

CSCE 3600 Exam 2 Questions and Answers Fully Solved Latest Version The SELECT function allows the servers to deal with blocking calls by identifying sockets that are ready for use - AnswersTrue In a single processor system, all the threads execute in interleaved fashion(=though in no particular order) sharing the CPU - AnswersTrue System calls or library routines are called thread safe if they can be called from multiple threads simultaneously and always produce correct results - AnswersTrue Each process has its own ready queue - AnswersFalse Datagram sockets do not require the client to establish a connection with the server before sending messages to the server - AnswersFalse preemptive scheduling algorithms may results in starvation - AnswersTrue The degree of multi program is controller by the CPU scheduler - AnswersFalse When the PTHREAD_EXIT system call is issued by a thread, all threads associated with that process are terminated - AnswersFalse A child process created by the FORK system call inherits its parent's process id - AnswersFalse condition variable allows a thread to block itself until specified data reaches a redefined state - AnswersTrue A thread will block if the semaphore value is less than or equal to zero when a SEM_WAIT is issued - AnswersTrue As the time slice becomes shorter, the more the RR scheduler behaves like the FIFO scheduler - AnswersFalse The privilege mode must be changed to "kernel mode" when doing a system call - AnswersTrue One of the guarantees offered by the PIPE IPC system call is that__________ - AnswersAll writes up to 4K bytes to the pipe are atomic turnaround time refers to the amount of time___________ - AnswersNeeded to executes a particular process _______ refers to a situation in which a process is ready to execute, but is continuously denied access to a processor in deference to other processes - AnswersStarvation Consider the following code Int main() { If (fork() 0) Sleep(100); Return 0; } Execution of this code results in the creation of an______ - AnswersZombie process An optimal job scheduling scheme for minimizing queueing time is__________ - AnswersSJF Context Switching between processes is carried out by the______ - AnswersShort term scheduler Consider the following segment of code in a program Int fd[2]; Pipe(fd); Pip = fork(); // what statement here to read from pipe Int bytesRead = read(...); ... What operations regarding the pipe do we expect the child to do following the PID = FORK() statement? - AnswersClose(fd[1]); An I/O- bound process spends _______ - AnswersMore of its time seeking I/O operations than doing computational work

Vista previa del contenido

CSCE 3600 Exam 2 Questions and Answers Fully Solved Latest Version 2025-2026

The SELECT function allows the servers to deal with blocking calls by identifying sockets that are ready
for use - AnswersTrue

In a single processor system, all the threads execute in interleaved fashion(=though in no particular
order) sharing the CPU - AnswersTrue

System calls or library routines are called thread safe if they can be called from multiple threads
simultaneously and always produce correct results - AnswersTrue

Each process has its own ready queue - AnswersFalse

Datagram sockets do not require the client to establish a connection with the server before sending
messages to the server - AnswersFalse

preemptive scheduling algorithms may results in starvation - AnswersTrue

The degree of multi program is controller by the CPU scheduler - AnswersFalse

When the PTHREAD_EXIT system call is issued by a thread, all threads associated with that process are
terminated - AnswersFalse

A child process created by the FORK system call inherits its parent's process id - AnswersFalse

condition variable allows a thread to block itself until specified data reaches a redefined state -
AnswersTrue

A thread will block if the semaphore value is less than or equal to zero when a SEM_WAIT is issued -
AnswersTrue

As the time slice becomes shorter, the more the RR scheduler behaves like the FIFO scheduler -
AnswersFalse

The privilege mode must be changed to "kernel mode" when doing a system call - AnswersTrue

One of the guarantees offered by the PIPE IPC system call is that__________ - AnswersAll writes up to
4K bytes to the pipe are atomic

turnaround time refers to the amount of time___________ - AnswersNeeded to executes a particular
process

_______ refers to a situation in which a process is ready to execute, but is continuously denied access to
a processor in deference to other processes - AnswersStarvation

Consider the following code

, Int main()

{

If (fork() > 0)

Sleep(100);

Return 0;

}



Execution of this code results in the creation of an______ - AnswersZombie process

An optimal job scheduling scheme for minimizing queueing time is__________ - AnswersSJF

Context Switching between processes is carried out by the______ - AnswersShort term scheduler

Consider the following segment of code in a program



Int fd[2];

Pipe(fd);

Pip = fork();

// what statement here to read from pipe

Int bytesRead = read(...);

...




What operations regarding the pipe do we expect the child to do following the PID = FORK() statement?
- AnswersClose(fd[1]);

An I/O- bound process spends _______ - AnswersMore of its time seeking I/O operations than doing
computational work

Which of the following are virtually shared by threads within a single process? In other words, which are
instantiated per process instead of per thread? - AnswersCode / program text

Información del documento

Subido en
1 de agosto de 2025
Número de páginas
9
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$11.39

¿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.
TutorJosh
3.5
(77)
Vendido
510
Seguidores
16
Artículos
33169
Última venta
2 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