예제 #1
0
파일: threads.py 프로젝트: Avinash9/wdb
 def run(self):
     print('Thread 1 start')
     wtf()
     print('Thread 1 end')
예제 #2
0
파일: threads.py 프로젝트: Avinash9/wdb
from threading import Thread
from wdb import set_trace as wtf


class Thread1(Thread):
    def run(self):
        print('Thread 1 start')
        wtf()
        print('Thread 1 end')


class Thread2(Thread):
    def run(self):
        print('Thread 2 start')
        wtf()
        print('Thread 2 end')

t1 = Thread1()
t2 = Thread2()
t1.daemon = t2.daemon = True
print('Starting threads')
t1.start()
t2.start()

print('Joining')
t1.join()
t2.join()

wtf()
print('The End')
예제 #3
0
파일: threads.py 프로젝트: Avinash9/wdb
 def run(self):
     print('Thread 2 start')
     wtf()
     print('Thread 2 end')
예제 #4
0
 def run(self):
     print('Process 1 start')
     wtf()
     print('Process 1 end')
예제 #5
0
from wdb import set_trace as wtf


class Process1(Process):
    def run(self):
        print('Process 1 start')
        wtf()
        print('Process 1 end')


class Process2(Process):
    def run(self):
        print('Process 2 start')
        wtf()
        print('Process 2 end')


t1 = Process1()
t2 = Process2()
t1.daemon = t2.daemon = True
print('Forking process')
t1.start()
t2.start()

print('Joining')
t1.join()
t2.join()

wtf()
print('The End')
예제 #6
0
파일: forks.py 프로젝트: s0undt3ch/wdb
 def run(self):
     print("Process 1 start")
     wtf()
     print("Process 1 end")
예제 #7
0
파일: threads.py 프로젝트: KqSMea8/gueslang
 def run(self):
     print('Thread 1 start')
     wtf()
     print('Thread 1 end')
예제 #8
0
파일: threads.py 프로젝트: KqSMea8/gueslang
 def run(self):
     print('Thread 2 start')
     wtf()
     print('Thread 2 end')