• ¿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 3 fuera de 23 páginas
Examen

Csce 3600 Exam 2 2025 Questions And Answers

Document preview thumbnail
Vista previa 3 fuera de 23 páginas

A socket system call returns _______for the created socket A) A file descriptor B) A process ID C) A thread ID D) A memory address - ANS A) A file descriptor A pthread_create function returns_______ for the newly created thread. A) A file descriptor B) A process ID C) A thread ID D) A memory address - ANS C) A thread ID A fork() function returns _______ for the newly created process. A) A file descriptor B) A process ID C) A thread ID D) 0 - ANS D) 0 2 COPYRIGHT © 2025 SIRJOEL ALL RIGHTS RESERVED Which of the following statements is true regarding processes and their requirements? A) A process is the same as an executing program. B) A process doesn't require any resources to accomplishits task. C) A process requires only CPU time to accomplish its task. D) A process needs certain resources, including CPU time,memory, files, and I/O devices, to accomplish its task. - ANS D) A process needs certain resources, including CPU time,memory, files, and I/O devices, to accomplish its task. True or False If there are no connection requests and the socket is not non-blocking, accept () function blocks till a connection requests comes in. - ANS True Which of the following statements is true about long-term scheduler? A) It is responsible for context switching between processes. B) It is responsible for selecting processes from memory for execution. C) It determines which programs are selected for execution from a queue of new processes. D) It is responsible for allocating memory to processes. - ANS C) It determines which programs are selected for execution from a queue of new processes. Which system call associates an address with a socket? A) bind() B) connect() C) listen() D) accept() - ANS A) bind() 3 COPYRIGHT © 2025 SIRJOEL ALL RIGHTS RESERVED In a client-server networking application, which process typically creates a new child process to handle each incoming client connection? A) The client process B) The server process C) Both the client and server processes D) Neither the client nor server process - ANS B) The server process Which of the following pieces of information is shared among all threads in a single process? (A) Heap (B) Stack (C) Program Counter (PC) (D) None of the above. - ANS (A) Heap A process control bl

Vista previa del contenido

CSCE 3600 EXAM 2 2025 QUESTIONS
AND ANSWERS


A socket system call returns _______for the created socket


A) A file descriptor
B) A process ID
C) A thread ID

D) A memory address - ANS A) A file descriptor


A pthread_create function returns_______ for the newly created thread.


A) A file descriptor
B) A process ID
C) A thread ID

D) A memory address - ANS C) A thread ID


A fork() function returns _______ for the newly created process.


A) A file descriptor
B) A process ID
C) A thread ID

D) 0 - ANS D) 0


1 COPYRIGHT © 2025 SIRJOEL ALL RIGHTS RESERVED

,Which of the following statements is true regarding processes and their requirements?


A) A process is the same as an executing program.
B) A process doesn't require any resources to accomplishits task.
C) A process requires only CPU time to accomplish its task.
D) A process needs certain resources, including CPU time,memory, files, and I/O devices, to
accomplish its task. - ANS D) A process needs certain resources, including CPU time,memory,
files, and I/O devices, to accomplish its task.


True or False
If there are no connection requests and the socket is not non-blocking, accept () function blocks
till a connection requests comes in. - ANS True


Which of the following statements is true about long-term scheduler?


A) It is responsible for context switching between processes.
B) It is responsible for selecting processes from memory for execution.
C) It determines which programs are selected for execution from a queue of new processes.

D) It is responsible for allocating memory to processes. - ANS C) It determines which
programs are selected for execution from a queue of new processes.


Which system call associates an address with a socket?


A) bind()
B) connect()
C) listen()

D) accept() - ANS A) bind()

2 COPYRIGHT © 2025 SIRJOEL ALL RIGHTS RESERVED

, In a client-server networking application, which process typically creates a new child process to
handle each incoming client connection?


A) The client process
B) The server process
C) Both the client and server processes

D) Neither the client nor server process - ANS B) The server process


Which of the following pieces of information is shared among all threads in a single process?


(A) Heap
(B) Stack
(C) Program Counter (PC)

(D) None of the above. - ANS (A) Heap


A process control block should contain ________ .


(A) the process state
(B) a list of open files
(C) the contents of CPU registers

(D) all of the above - ANS D) all of the above


Context switching between processes is carried out by the________.


(A) job (long-term) scheduler
(B) CPU (short-term) scheduler

3 COPYRIGHT © 2025 SIRJOEL ALL RIGHTS RESERVED

Información del documento

Subido en
26 de junio de 2025
Número de páginas
23
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$13.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.
sirjoel
3.6
(19)
Vendido
136
Seguidores
13
Artículos
12750
Última venta
2 semanas 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