Python/Threading: Difference between revisions

From Omnia
Jump to navigation Jump to search
(Created page with "== Python 3 == <pre> import _thread def mythread(param1, param2): pass _thread.start_new_thread( mythread, ("Param1", "Param2", ) ) _thread.start_new_thread( mythread, ("...")
 
(No difference)

Latest revision as of 23:19, 12 November 2022

Python 3

import _thread

def mythread(param1, param2):
  pass

_thread.start_new_thread( mythread, ("Param1", "Param2", ) )
_thread.start_new_thread( mythread, ("Param1", "Param2", ) )

ref: [1]