Python/Threading

From Omnia
Revision as of 23:19, 12 November 2022 by Kenneth (talk | contribs) (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, ("...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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]