Rédigé par des étudiants ayant réussi Disponible immédiatement après paiement Lire en ligne ou en PDF Mauvais document ? Échangez-le gratuitement 4,6 TrustPilot
logo-home
Examen

CSCE 3600 EXAM 2 2025 QUESTIONS AND ANSWERS

Note
-
Vendu
-
Pages
23
Grade
A+
Publié le
26-06-2025
Écrit en
2024/2025

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

Montrer plus Lire moins
Établissement
CSCE 3600
Cours
CSCE 3600

Aperçu du contenu

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

École, étude et sujet

Établissement
CSCE 3600
Cours
CSCE 3600

Infos sur le Document

Publié le
26 juin 2025
Nombre de pages
23
Écrit en
2024/2025
Type
Examen
Contient
Questions et réponses

Sujets

$13.99
Accéder à l'intégralité du document:

Mauvais document ? Échangez-le gratuitement Dans les 14 jours suivant votre achat et avant le téléchargement, vous pouvez choisir un autre document. Vous pouvez simplement dépenser le montant à nouveau.
Rédigé par des étudiants ayant réussi
Disponible immédiatement après paiement
Lire en ligne ou en PDF

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
sirjoel Liberty University
Voir profil
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
133
Membre depuis
2 année
Nombre de followers
13
Documents
12788
Dernière vente
2 semaines de cela
Sirjoel

Here you will find all documents and package deals offered by sirjoel

3.6

18 revues

5
4
4
5
3
7
2
1
1
1

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Vous travaillez sur vos références ?

Créez des citations précises en APA, MLA et Harvard avec notre générateur de sources gratuit.

Vous travaillez sur vos références ?

Foire aux questions