*Rani of Hearts-Reena Kapoor Paristan#54*AkhiyonPeTeriHuaDilYehFida - Page 2

Created

Last reply

Replies

1196

Views

18026

Users

3

Likes

23

Frequent Posters

MasoomaBukhari thumbnail
Anniversary 15 Thumbnail Group Promotion 8 Thumbnail + 4
Posted: 5 years ago
wese hi hm dono busy thay kam ana hua 😛

but still... i went to hostel AFTER that AT started 😲 

*shooks head*
MasoomaBukhari thumbnail
Anniversary 15 Thumbnail Group Promotion 8 Thumbnail + 4
Posted: 5 years ago
chalo khayr.. parhne ka time hogya he 😆


see u 🤗
MasoomaBukhari thumbnail
Anniversary 15 Thumbnail Group Promotion 8 Thumbnail + 4
Posted: 5 years ago
did i post OS type definitions on AT too or was it jst buzzy's inbox 🤔
MasoomaBukhari thumbnail
Anniversary 15 Thumbnail Group Promotion 8 Thumbnail + 4
Posted: 5 years ago
monolithic
carries all functionality

modular
carries minimum functionality and structure

micro kernel
:/ same as modular likha hua net pe :S
MasoomaBukhari thumbnail
Anniversary 15 Thumbnail Group Promotion 8 Thumbnail + 4
Posted: 5 years ago
context switching
switching PCBs of processes
direct costs: # of cycles for store/load instructions
indirect costs: cold cache/ cache misses
MasoomaBukhari thumbnail
Anniversary 15 Thumbnail Group Promotion 8 Thumbnail + 4
Posted: 5 years ago
message passing types

pipes: do it character by character

message queues: do it packet wise


message passing is form of communication between processes.. 🤔
IPC? o_O
MasoomaBukhari thumbnail
Anniversary 15 Thumbnail Group Promotion 8 Thumbnail + 4
Posted: 5 years ago
data structure used by kernel
circular doubly linked list -> task list -> struct task_struct 😡
system calls happen in process ka kernel stack 😲
MasoomaBukhari thumbnail
Anniversary 15 Thumbnail Group Promotion 8 Thumbnail + 4
Posted: 5 years ago
user kernel thread relationship

many to one -> ek kernel pe many threads..
adv portable
disadv ek thread i/o pe block ho to os sara process hi block kr deta he mtlb baki threads b
insights b ni hoti kernel ko apps ki


one to one -> ek kernel pe ek thread
adv ek thread block hoga to baki threads ni honge bcz kernels hi diff. hen
threads kernel ko visible hote he to sync issue ni hota
dis adv not portable
threads ko hr operation k liye os paas jana prta

many to many -> sucks 😆 no one uses it .. too complex
MasoomaBukhari thumbnail
Anniversary 15 Thumbnail Group Promotion 8 Thumbnail + 4
Posted: 5 years ago
ok i cant find my pen so gonna solve it here lol
MasoomaBukhari thumbnail
Anniversary 15 Thumbnail Group Promotion 8 Thumbnail + 4
Posted: 5 years ago
threads: 6
boss worker processes in 120 ms
pipeline - each stage processes in 20 ms

how long will it take both for 10 orders?

-
boss worker = time_finish_1order * (num of orders / num of threads)
pipeline = time_finish_1order + (remaining orders * time_finish_lastOrder)

BW = 120 * (10/6) = 120 * 2 = 240 ms


Pipeline:
time_finish_1order = 6 * 20 = 120 ms
remaining orders * time_finish_last order = 9 * 20 = 180

pipeline = 120 + 180 = 300 ms