














































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This document offers a comprehensive overview of operating systems, focusing on key concepts such as system calls for process management and signaling, process states, thread implementation, and optimization strategies. it delves into process creation, termination, and inter-process communication, providing valuable insights into the complexities of operating system design and functionality. The document also explores the challenges of thread management within user space and kernel space, offering a solid foundation for understanding operating system principles.
Typology: Lecture notes
1 / 54
This page cannot be seen from the preview
Don't miss anything!















































file from^ the disk (^) , and also^ considering
can go (^) wrong while reading a disk^ block (^). That's why an
was needed^ with which user can^ interact^ and^ do his work So (^) ,^ the^ most^ fundamental system program
is OPERATING^ SYSTEM. Application (^) programs are but^ on^ top of the^ os. ④ ·
BANKING (^) AIRLINE (^) BROWSER & Application (^) programs SYSTEM (^) RESERVAT... RETER
COMPILERS EDITORS
Operating systems^
system (^) programs Machine (^) language Hardware Micro-architecture
sys (^) program which run in^ Kernel^ mode^ or^ supervised mode^ , which means user^ programs can't temper the hardware becz user prog.
Operating system^ handles (^) so many complex operations . And (^) resource managment
multiplexing d Time multiplexing space^
M programsp2-
P1 (^) //// >
mem (^). p to programs O (^1024) bytes [space multiplexing]
MINN We^ will study
-- if possible^ so that^ everything we'll understand in a great
benefit (^) from it lifelong MINIX is inspired (^) from UNIX^
change license to^ not^ use it for any
University
study (^) purpose . It is^ written^ in^ c-language
. (^) MINIX impired (^) , LINUX originated (^) from MINIX only after a person name "Linus Torvalds"^ made^ few changes
Linux 1. 0 born (^) on March^13 , 1994.
#SYSEM CALLS FOR PROCESS (^) MANMENTS E
fork 2
getgrp)) pid = (^) setsid()
group 1 =^ Ptrace^ (req ,^ pid , addr^ , datase used^ to^ get trac & (^) debugging
① for forkil
registers ,^ fas^ ... of (^) for king (^) rt , r , fl,^ f^ -1 (^) , r2^ , (^) f1 , (^) + 2 & everything same everything is same including registers , (^) fols &^ variable's (^) values ·
when both^ runs^ , (^) they run^ separately
change of one (^) doesn't effect
fork)) returns o for child If child's (^) PID (^) for the
status. 4 normal (^) , abnormal^ or^ exit^ values Now (^) , when^ child (^) executes the user command^ -^ > It does^ so by (^) calling exece system call 8 -^
·Levelworking (^) while[TRUES & typeprompt (^2) ;
-- parent waiting^ [if
= (^) 6) (^) & waitpid (1, &^ Status , of^ ;^3 chidetecting
<-[elsed execre [commd (^) , parame , of t y
execre) name^ , argy , exp (^) Ent Note i ↓ name (^) of
file to be^ executed I wa willeen pointer to t
arg (^) array too- -- ↓ -- pointer to (^) the env array
processes
exit/terminate and status returned^ will^ go/store
pointed out byOstatic . IWill be returned (^) to the (^) parent-
· (^) signals can^ be^ blocked^ in^ MINIX ⑧ Blocked^ signal
④ (^) sigpending)) call^ return a (^) set of bitmap 20 ,^ 1 , 1 , (^04)
represent the signals
pending and blocked ④ sigprocmask)) call (^) allows a process to define a (^) set of (^) bitmap for landl to (^) tell the^ blocked signals ⑤ Insted^ using a function by^ a proces
procee an define a constant SIG-IGN to^ tell that signals (^) of (^) specific type one^ blocked/ignored .
default action of
signal when^ it (^) occurs.
· (^) the
action of the signal is either^
kill the^ process or ignore the (^) signal which depends on the signal .
"
execc) ,
sigacion (SIGINT^ ,^ 512-14N (^) , NULL) /sigaction
time. for
② (^) ①
rights (^) represented (^) by (^0751).
↓ represents^ rux bits
di O in^ C represents that I 78
O
⑳ rWX^ - >^ read^ , write , executable permissions #Y^ , 0
④ (^) owner(7)^
1120 = (^) (x82 + · (^) his grou (5)