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
Exam (elaborations)

CSCE 3600 EXAM QUESTIONS AND ANSWERS LATEST UPDATE (ALREADY GRADED A+)

Rating
-
Sold
-
Pages
5
Grade
A+
Uploaded on
20-02-2025
Written in
2024/2025

CSCE 3600 EXAM QUESTIONS AND ANSWERS LATEST UPDATE (ALREADY GRADED A+) What is a process? The active implementation of an otherwise passive program. Within the process context (also known as user context), there are four components: Text, data, stack, heap. Within the register context, the components are: General purpose registers, stack pointer, program counter, etc.. PID 0 Swapper/sched, used for memory management. PID 1 Init, continually running in the background and used to startup/shutdown the system. Process state created Also known as "new". Process state waiting Also known as "ready", when process is scheduled for execution. Can transition to running via scheduler dispatch. Process state running Actively executing instructions on the CPU. Process state blocked Unable to continue without even occurring, eg./ I/O. Process state terminated Has been killed off by "exit". CPU scheduler Invoked every couple of milliseconds, this is short term. Job scheduler Invoked every couple of seconds or minutes, decides which processes to be brought into the ready queue.

Show more Read less
Institution
Course

Content preview

CSCE 3600 EXAM QUESTIONS AND ANSWERS
LATEST UPDATE (ALREADY GRADED A+)
What is a process?

The active implementation of an otherwise passive program.

Within the process context (also known as user context), there are four components:

Text, data, stack, heap.

Within the register context, the components are:

General purpose registers, stack pointer, program counter, etc..

PID 0

Swapper/sched, used for memory management.

PID 1

Init, continually running in the background and used to startup/shutdown the system.

Process state created

Also known as "new".

Process state waiting

Also known as "ready", when process is scheduled for execution. Can transition to running via scheduler
dispatch.

Process state running

Actively executing instructions on the CPU.

Process state blocked

Unable to continue without even occurring, eg./ I/O.

Process state terminated

Has been killed off by "exit".

CPU scheduler

Invoked every couple of milliseconds, this is short term.

Job scheduler

Invoked every couple of seconds or minutes, decides which processes to be brought into the ready
queue.

, Three queues:

Job (all PCBs in the system).

Ready (All processes in the main memory and waiting to execute).

Device (All processes waiting for an I/O device).

Thrashing

When the CPU spends more time swapping context than getting actual work done.

Context switches

Yield and overhead of 1 us and are swapping an old PCB for a new one.

Exec family

execl (full name of command, variable length of arguments terminated by NULL)

execlp(same as execl but with partial name)

execle(same as execlp but third argument listing environment variables)

execv(execl where args are null terminated array)

execvp(execlp w/ null term)

execve (execle with null)

Two uses for fork

Dispatching a child to do some work for you, and executing a command (like a shell).

Two reasons fork will fail

Too many processes in system already, or exceeds max number of processes allowed for the user ID.

When a new processed is created:

Child inherits a copy of the parent's memory space, File descriptors are also inherited. Non-deterministic
output.

A process may be terminated:

When it executes its last statement, by calling, exit, when the parent calls abort() on it.

Abort() can be called by the parent when the child:

Has exceeded its allocated resources, has a task assigned that is no longer required, or when the
parenting is exiting (on select operating systems).

Written for

Course

Document information

Uploaded on
February 20, 2025
Number of pages
5
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$9.99
Get access to the full document:

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


Also available in package deal

Get to know the seller

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.
SOLUTIONSCORE School of Pharmacy
Follow You need to be logged in order to follow users or courses
Sold
13
Member since
1 year
Number of followers
4
Documents
1742
Last sold
5 months ago
SOLUTIONSCORE

I Focus on creating high-quality, well-organized documents that accurately reflect the course content. I'm passionate about helping others succeed in their studies, and I create comprehensive summaries, study guides,Questions and answers and flashcards based on my class notes and lectures. My materials are designed to be clear, concise, and effective, so you can focus on understanding the material and ace your exams! Feel free to message me if you have any questions.

Read more Read less
4.9

295 reviews

5
268
4
26
3
1
2
0
1
0

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