CPU Scheduling Basics

  Рет қаралды 41,286

Jacob Sorber

Jacob Sorber

Күн бұрын

Пікірлер
@yanistancheva3076
@yanistancheva3076 3 жыл бұрын
16 minutes summed up my whole 2 hour lecture thank you
@JacobSorber
@JacobSorber 3 жыл бұрын
You're welcome. Glad I could help.
@ukaszkiepas57
@ukaszkiepas57 2 жыл бұрын
+1
@user-ej7ss8ei2g
@user-ej7ss8ei2g 3 жыл бұрын
Hah, imagine having a teacher or prof. so cool that they have their own high quality channel, but also says when something might show up on a quiz. Love the videos, you've helped me a lot.
@abanoubsameh6608
@abanoubsameh6608 4 жыл бұрын
Great videos! I wish I found you earlier. Keep up the good work.
@Christobanistan
@Christobanistan 2 жыл бұрын
I've been a programming since 1989 or so, always wondered about this but never got around to this. Cool beans.
@santoshsco
@santoshsco 3 жыл бұрын
Love your channel jacob , wish i had found this earlier .
@JacobSorber
@JacobSorber 3 жыл бұрын
Thanks, Santosh. Glad you're enjoying it.
@g194g
@g194g 4 жыл бұрын
Very clear and helpful explanation
@jonathanflores3748
@jonathanflores3748 4 жыл бұрын
Great content! Love your videos!
@JacobSorber
@JacobSorber 4 жыл бұрын
Thanks, Jonathan. Glad you like them!
@smallspringonion
@smallspringonion 4 жыл бұрын
Very helpful video! Thank you!
@JacobSorber
@JacobSorber 4 жыл бұрын
You're welcome.
@XxxGuitarMadnessxxX
@XxxGuitarMadnessxxX 3 жыл бұрын
I've been watching your videos for a little while now (Great Content by the way! Loving the neat tricks you can learn from watching your videos!) But I died when you started quoting the whole B.S. oath - It's been 10 years since I heard all that lmao
@JacobSorber
@JacobSorber 3 жыл бұрын
Glad you enjoyed that.
@roargamer007
@roargamer007 2 ай бұрын
2:02 Process States Created = New Active = Running Waiting Ready Exited = Terminated
@randomsoul00
@randomsoul00 2 жыл бұрын
well explained👍
@omhmpp
@omhmpp 2 жыл бұрын
absolutely phenomenal video, but I just wanna point out that SJF (shortest job first) is actually different than shortest remaining time first SRTF
@jenselstner5527
@jenselstner5527 3 жыл бұрын
Best of video is the LEGO in the background ... just kidding. ;o) Good explanation and nice LEGOs.
@marziehizadi985
@marziehizadi985 2 жыл бұрын
Fantastic, thanks a lot.
@bigwoof2137
@bigwoof2137 7 ай бұрын
Avg. Response time 7:51 is wrong, should be 4.33. P1: 0 P2: 7 - 2 = 5 P3: 7 + 4 - 3 = 8
@donha475
@donha475 4 жыл бұрын
Lol @ -20 niceness impersonation ;)
@pasteyourinjectionstringhere
@pasteyourinjectionstringhere 3 ай бұрын
HAHAHA
@bad_robot
@bad_robot 7 ай бұрын
the scout law reference lol
@kushagrakumar9576
@kushagrakumar9576 5 жыл бұрын
What is the difference between chrt and nice utility for process scheduling in linux? Could you please explain sched_setscheduler ( sched.h ) and related system call with an example .
@JacobSorber
@JacobSorber 5 жыл бұрын
chrt is more general and more powerful than nice. Nice basically changes the inverse of the processes priority assuming the default Linux scheduler. With chrt, you can change the scheduler. Linux offers a few different schedulers (check the chrt man page for details), and the naming is a bit misleading, because they refer to "real-time" scheduling, but Linux isn't a RTOS. So, this isn't real real-time scheduling (no deadlines). It's just a higher priority scheduling algorithm. If you need an RTOS (you're implementing flight control on an airplane or running a self-driving car) I would recommend looking somewhere other than Linux.
@kushagrakumar9576
@kushagrakumar9576 5 жыл бұрын
@@JacobSorber Thanks Jacob for the explanation. Please continue to make more videos on OS. Do you think is it worth to make a continuation video on process scheduling with More system calls like sched_setscheduler etc .?
@oviya.n1317
@oviya.n1317 3 жыл бұрын
Pls make playlists for OS and embedded system
@ropersonline
@ropersonline 4 жыл бұрын
11:50: "If alpha is one, then we ignore reality and we just go with the last prediction... If alpha is close to zero, we predict almost solely based on the last experience..." So either the last or the last? That doesn't seem to make too much sense...?
@JacobSorber
@JacobSorber 4 жыл бұрын
There's the last prediction (p_n, what we predicted last) and the last experience (m, what actually happened last). They're both "last" things, but different things. Sorry for the confusion.
@ropersonline
@ropersonline 4 жыл бұрын
@@JacobSorber Thanks for taking the time and answering everything. You're really nice, and not in the scheduling sense either. :) I plan to watch all your videos, but there's a whole year's worth still left. :)
@maoryatskan6346
@maoryatskan6346 4 жыл бұрын
Awesome
@MB-hs4vp
@MB-hs4vp 6 жыл бұрын
Do these scheduling techniques differ for RTOS?
@JacobSorber
@JacobSorber 6 жыл бұрын
Yes. In real-time scheduling tasks have deadlines, and the scheduler has to reason about those deadlines.
@ailijic
@ailijic 5 жыл бұрын
Some RTOS can have both real time and standard tasks. Also, the Linux kernel can have real time tasks. Real time is a very overused term. Know the requirements of your system and then look for an OS that can handle those requirements.
@ropersonline
@ropersonline 4 жыл бұрын
@@ailijic It's not just the OS; go look for suitable silicon also. Back in the day that might have been Motorola 68k or even MOS 6502. These days it's prolly s/th like ARM Cortex-R.
@corcodelmarian
@corcodelmarian Жыл бұрын
On Intel proc allways look to call and jump to be paired with ret on binary Code but, gcc forget sometimes, this îs big problem on linux.
@aubriewest1135
@aubriewest1135 3 жыл бұрын
14:59 Sounds like Ta'arof in Iran :)
@BritishBeachcomber
@BritishBeachcomber 2 жыл бұрын
The OS/2 scheduler was so bad. If a task/thread went into an infinite loop, with no system calls, the whole system would hang.
@Axias85
@Axias85 2 жыл бұрын
....Wait, was that a Boy Scout joke?
@joerogan3079
@joerogan3079 Жыл бұрын
*MY PROF IS HORRIBLE* 🤦‍♂️ #helpMe
@alacastersoi8265
@alacastersoi8265 4 жыл бұрын
"7,214 views" ? wHaT?
@faizunisajazadi8732
@faizunisajazadi8732 2 жыл бұрын
Great lecture! Thanks!
What is a semaphore? How do they work? (Example in C)
13:27
Jacob Sorber
Рет қаралды 315 М.
What if I try to malloc WAY too much memory?
4:32
Jacob Sorber
Рет қаралды 70 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
How to Map Files into Memory in C (mmap, memory mapped file io)
4:47
Handling Errors in C/Unix (perror, strerror, errno)
6:36
Jacob Sorber
Рет қаралды 39 М.
How processes get more memory. (mmap, brk)
6:50
Jacob Sorber
Рет қаралды 74 М.
Header Issues: Guards, Name Mangling, and extern "C"
8:32
Jacob Sorber
Рет қаралды 79 М.
Creating new processes with fork()!
6:21
Jacob Sorber
Рет қаралды 73 М.
Understanding and implementing a Hash Table (in C)
24:54
Jacob Sorber
Рет қаралды 371 М.
Safety and Speed Issues with Threads. (pthreads, mutex, locks)
9:13
How to make memory read-only in your C programs.
12:57
Jacob Sorber
Рет қаралды 21 М.
How do I access a single bit?
11:07
Jacob Sorber
Рет қаралды 23 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН