- 39
- 3 601
Vicent Rutagangibwa
Uganda
เข้าร่วมเมื่อ 11 ต.ค. 2012
Systems Programming | Module 04 | Race Condition
Systems Programming | Module 04 | Race Condition
มุมมอง: 96
วีดีโอ
Module 03 | IoT Data Utlization | Simulation
มุมมอง 667 ชั่วโมงที่ผ่านมา
Internet of Things (IoT) Data Utilization simulation example
Systems Programming | Inter Process Communication
มุมมอง 5619 ชั่วโมงที่ผ่านมา
Inter Process Communication code example
Module02 | TempMonitor | Simulation Example
มุมมอง 8421 ชั่วโมงที่ผ่านมา
Internet of Things temperature monitor simulation example
DSP Practical Session 2 Periodic signals and Convolution
มุมมอง 1096 หลายเดือนก่อน
DSP Practical Session 2 Periodic signals and Convolution
Lecture 3: Systems Programming - Race Condition
มุมมอง 529 หลายเดือนก่อน
Lecture 3 Systems Programming - Race Condition Demo
Electrical Power Distribution Maintenance Arthur Mugumya
มุมมอง 10310 หลายเดือนก่อน
Guest Lecture on Maintenance of electrical power distribution systems
Guest Lecture 2 2
มุมมอง 16110 หลายเดือนก่อน
Guest Lecture on Overhead Lines and Transformers by Eng. Bonus
Lecture 2 Systems Programming - Practical Demo
มุมมอง 10710 หลายเดือนก่อน
Lecture 2 Systems Programming - Practical Demo
Lecture 4 File Permissions and Basics of Shell Scripts
มุมมอง 81ปีที่แล้ว
Lecture 4 File Permissions and Basics of Shell Scripts
Group1 Session 3 - Application of Lists in Python
มุมมอง 39ปีที่แล้ว
Group1 Session 3 - Application of Lists in Python
Day3 Variables - Python Programming for Beginners
มุมมอง 45ปีที่แล้ว
Day3 Variables - Python Programming for Beginners
Python Programming for Beginners - The Guessing Game Ver 2.0
มุมมอง 60ปีที่แล้ว
Python Programming for Beginners - The Guessing Game Ver 2.0
Day1 Introduction & Get Started to Python Programming
มุมมอง 37ปีที่แล้ว
Day1 Introduction & Get Started to Python Programming
0 OverView - Python Programming for Beginners
มุมมอง 18ปีที่แล้ว
0 OverView - Python Programming for Beginners
Group1 Session 2 - Python Programming for Beginners
มุมมอง 148ปีที่แล้ว
Group1 Session 2 - Python Programming for Beginners
Python Lesson 1 Software Tools and Installation
มุมมอง 89ปีที่แล้ว
Python Lesson 1 Software Tools and Installation
Thank you for this video Vicent and good luck with your chanell!
he'' think we're bots
Thank you for this video Vicent and good luck with your chanell!
So great Engineer
and also i thought the switch expression is evaluated once. The value of the expression is compared with the values of each case If there is a match, the associated block of code is executed.The break statement breaks out of the switch block and stops the execution.The default statement is optional, and specifies some code to run if there is no case match. but its like in the second code with the switch, each case if executed, yet it even has a break at the end of each case. am confused on how it is even possibly working
Using fork() for multiple processes: Since we are working with fork(), each case might be executed by different processes. fork() creates a new process, and each process can follow a different path through the switch statement. For example: The child process might execute one case in the switch. The parent process might execute a different case in the same switch. This can give the appearance that multiple case blocks are running, but in reality, each process executes a different case independently, and both processes are printing their results.
There something i didn't understand clearly. in the first code we got the child's pid in the parent work space "if(id>0){ printf("Parent process: My child's pid is %d ", id); //sleep(3); wait(NULL); }" but then in the second code in the same workspace we are only able to get the parent pid "default: wait(NULL); printf("Parent process: child terminated successfully "); printf("Parent process: My pid %d ", getpid()); printf("fork returned %d to the parent process ", pid); break;"
In both cases, fork() returns the child’s PID to the parent process. In the first code, the child's PID is printed (id), whereas in the second code, the focus is on printing the parent's own PID (getpid()) along with the value returned by fork() to the parent which is actually the PID of the child.
Best presentation Mr Rutt's our best lecturer
Hy may i please get the notes for this Lecture. Very informative
I was really helpful, thank you professor🎉🎉🎉🎉
Good knowledge Thanks Mbarara University
The screen is off
instructor GB??
Hello Vincent. As someone interested in programming, I'm closely following your lectures on Python programming. Keep it up
I have effectively benefited from the course. Now, i can apply the acquired knowledge. Thanks so much Dr.
Share the code if it is there, thanks Great work🤝