Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 8 pages
Exam (elaborations)

COMP 3300 operating systems midterm Exam Questions and Answers Already Passed Latest Update

Document preview thumbnail
Preview 2 out of 8 pages

COMP 3300 operating systems midterm Exam Questions and Answers Already Passed Latest Update What is a process in an operating system? - Answers A process is a program in execution, which progresses sequentially. What are the main components of a process? - Answers Text section (program code) Program counter & registers (current activity) Stack (temporary data like function parameters, return addresses, local variables) Data section (global variables) Heap (dynamically allocated memory) Which of the following is NOT a component of a process? Stack Cache Heap Data section - Answers Correct Answer: Cache (Cache is part of CPU memory, not a process component.) What are the main topics covered in process management? - Answers Process Concept Process Scheduling Operations on Processes Interprocess Communication (IPC) Client-Server Communication What are the two primary types of Interprocess Communication (IPC)? - Answers Shared Memory Message Passing In shared-memory IPC, where do processes communicate? Through system calls Through the file system By accessing a common memory segment Through the CPU registers - Answers Correct Answer: By accessing a common memory segment How does message-passing IPC differ from shared-memory IPC? - Answers Message Passing: Processes exchange data via system calls using the OS as an intermediary. Shared Memory: Processes communicate by directly reading/writing to a shared memory segment. What is the purpose of process scheduling? - Answers To determine which processes should run and in what order, optimizing CPU utilization and responsiveness. What are some key operations on processes? - Answers Process creation Process termination Process execution scheduling How do client-server systems communicate? - Answers Using sockets and remote procedure calls (RPCs). Which of the following is a method of client-server communication? Function calls System logs Sockets File transfers - Answers Correct Answer: Sockets What is a key objective of process management in an OS? Running all processes simultaneously Eliminating process execution overhead Efficiently managing multiple processes and their communication Preventing context switching - Answers Correct Answer: Efficiently managing multiple processes and their communication What system call does a parent process use to wait for a child process to terminate? - Answers wait() What does the wait() system call return? - Answers The status information and the PID of the terminated child process. What happens if a child process terminates, but the parent does NOT call wait()? - Answers The child process becomes a zombie process. What is a zombie process? - Answers A terminated process that still has an entry in the process table because the parent has not called wait(). What happens if a parent process terminates before its child process? - Answers The child process becomes an orphan process. What happens to orphan processes in most operating systems? - Answers They are adopted by the init process (PID 1) in Unix/Linux-based systems. What is a thread? - Answers A thread is the smallest unit of execution within a process How do threads differ from processes? - Answers Threads share the same memory space

Content preview

COMP 3300 operating systems midterm Exam Questions and Answers Already Passed Latest
Update 2025-2026

What is a process in an operating system? - Answers A process is a program in execution,
which progresses sequentially.

What are the main components of a process? - Answers Text section (program code)

Program counter & registers (current activity)

Stack (temporary data like function parameters, return addresses, local variables)

Data section (global variables)

Heap (dynamically allocated memory)

Which of the following is NOT a component of a process?

Stack

Cache

Heap

Data section - Answers Correct Answer: Cache (Cache is part of CPU memory, not a process
component.)

What are the main topics covered in process management? - Answers Process Concept

Process Scheduling

Operations on Processes

Interprocess Communication (IPC)

Client-Server Communication

What are the two primary types of Interprocess Communication (IPC)? - Answers Shared
Memory

Message Passing

In shared-memory IPC, where do processes communicate?

Through system calls

Through the file system

By accessing a common memory segment

, Through the CPU registers - Answers Correct Answer: By accessing a common memory
segment

How does message-passing IPC differ from shared-memory IPC? - Answers Message Passing:
Processes exchange data via system calls using the OS as an intermediary.

Shared Memory: Processes communicate by directly reading/writing to a shared memory
segment.

What is the purpose of process scheduling? - Answers To determine which processes should
run and in what order, optimizing CPU utilization and responsiveness.

What are some key operations on processes? - Answers Process creation

Process termination

Process execution scheduling

How do client-server systems communicate? - Answers Using sockets and remote procedure
calls (RPCs).

Which of the following is a method of client-server communication?

Function calls

System logs

Sockets

File transfers - Answers Correct Answer: Sockets

What is a key objective of process management in an OS?

Running all processes simultaneously

Eliminating process execution overhead

Efficiently managing multiple processes and their communication

Preventing context switching - Answers Correct Answer: Efficiently managing multiple
processes and their communication

What system call does a parent process use to wait for a child process to terminate? - Answers
wait()

What does the wait() system call return? - Answers The status information and the PID of the
terminated child process.

What happens if a child process terminates, but the parent does NOT call wait()? - Answers The

Document information

Uploaded on
October 7, 2025
Number of pages
8
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$11.19

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
joshuawesonga22
3.4
(12)
Sold
114
Followers
2
Items
14891
Last sold
2 days ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions