#53 | Python Multi Threading Tutorial in Tamil | Sub Class Thread in Python

preview_player
Показать описание
#53 | Python Multi Threading Tutorial in Tamil | Sub Class Thread in Python

At start-up, a Thread does some basic initialization and then calls its run() method, which calls the target function passed to the constructor. To create a subclass of Thread, override run() to do whatever is necessary.Because the args and kwargs values passed to the Thread constructor are saved in private variables, they are not easily accessed from a subclass. To pass arguments to a custom thread type, redefine the constructor to save the values in an instance attribute that can be seen in the subclass.
MyThreadWithArgs uses the same API as Thread, but another class could easily change the constructor method to take more or different arguments more directly related to the purpose of the thread, as with any other class.

__
like our face book page..
--------------------------------------------------------------------------------
send request our channel official facebookprofile...
---------------------------------------------------------------------------------

#santratechspot
Рекомендации по теме
Комментарии
Автор

nothing gets to ur head.. like learning it in ur own language

shanthuog
Автор

Bro, when will u post Java vidoes ?? Eagerly waiting

manirajs