Python Programming Tutorial - 34 - threading

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Still referring to these videos in 2020

lipun_panda
Автор

don't name your python file for this tutorial 'threading.py'. it will interfere with the threading library which has the same name. also, change the value of 10 in the code to something bigger like 1000 to see the context switches. the linux kernel probably handles it differently then the windows kernel so that might be why you need a higher number there.

beat
Автор

Dude keep teaching i love the way u do, so easy bruh. Go more in depth with python ill stay tuned. Thank you very much 4 ur time. 

syknz
Автор

Anybody ? looking at this tutorial in 2019 !

karthibalaji
Автор

All I can say is Bucky is phenomenal. I learn so much in such a short time.

gregoryshipp
Автор

Don't forget to return at the end of the run function or the thread will not close and code after the thread might not execute! Great video as always.

jacobdykstra
Автор

Excellent lesson. Nice introduction to parallel programming. Thanks!

theody
Автор

Watching in September 2019, anyone's here ??

imena
Автор

26 days till 2020 and we are still watching...

alexboroun
Автор

this tutorial is awesome, you teach it from the basic and you made threading subject very clear!

shiraz
Автор

If output prints send 10 times and then received 10 times. Make sure you are using single quotes when passing name argument in BuckysMessenger class constructor. example x = BuckysMessenger(name='send out messages')

jsonknightlee
Автор

what i like of this video is that you just don't say, "this works and that's it", instead you explain how to use them,

ananava
Автор

Hej Bucky,
i was desperately waiting for a practical example on python's multi threading. In the next videos you build a Word Frequency Counter. Wouldn't it be a suitable case to use multi-treading if you split the text first? This way you could explain how to load the threads with the data and merge it afterwards. I'd be thankful to see something like this, you do great tutorials! :)

tk
Автор

I could see this becoming a simple chat tutorial.

SourceCodeDeleted
Автор

is threading a module ? and in this case thread is a build-in class of threading, but what's there is no thread class appeared and currentThread() getName() both are the functions, why are you use dot after currentThread(), is this meaning that getName() function actually inside currentThread() function???? what heck is that

daniel_liu_it
Автор

Hey! I am doing well with your course, thanks!!!. But I have just a little question. Is there any explanation why my threading works ONLY after the first compilation?

wodniktoja
Автор

I typed your code exactly the same.. I think.. but the getName()'s don't print out in a jumbled order.. it's 10 "Send out messages" then 10 "Receive messages"

What could be the cause of this?

antonr
Автор

I made a similar code that threads with two different Classes. Is there anything wrong with the way I made it?

import threading

class Main(threading.Thread):

def run(self):
for _ in range(100):
print('First Line')


class Second(threading.Thread):

def run(self):
for _ in range(100):
print('Second Line')


main = Main()
second = Second()

main.start()
second.start()

Ryan_Parmelee
Автор

for _ in range(10) - po prostu pętla bez żadnego "i"
8:50 - bardzo surowe reguły

pawebrysch
Автор

A new problem arrives
the two name of different object add and leave a line below their print statement

hiteshchoudhary