Show Menu
Cheatography

python thread Cheat Sheet by

python thread cheat sheet

threading summary

import threading
t = thread­ing.Th­rea­d(t­arget=fun, args = iter,name=thread name)
creat a thread
t.start()
start thread t
t.join()
join thread t, other threads waiting until t finishes
lock = thread­ing.Lock()
create a lock
lock.a­cqu­ire()
current thread acquires the lock
lock.r­ele­ase()
current thead release lock
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

            Python 3 Cheat Sheet by Finxter

          More Cheat Sheets by xys

          Python Cheat Sheet
          Java Cheat Sheet
          HTML Cheat Sheet