Multi-Threading Simulation | CPU-OS Simulator

Published: 25 February 2022
on channel: CodeJedi
5k
30

In this video, we will be looking into the simulation of Multi-threading in CPU-OS Simulator

Program:
program ThreadTest
total = 50
sub thread2 as thread
for i = 7 to 9
total = total + i
next
end sub

sub thread1 as thread
for i = 1 to 2
total = total + i
call thread2
next
end sub

call thread1
wait
writeln (“Total =”, total)
end

Buy Me a coffee:

Subscribe ►


Watch video Multi-Threading Simulation | CPU-OS Simulator online without registration, duration 03 minute 42 second in high hd quality. This video was added by user CodeJedi 25 February 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5 thousand once and liked it 30 people.