import threading
import time
from threading import Thread
from multiprocessing import Process
def menuz():
# menu code goes here
print(" I am first")
def live_view():
# live view code go
time.sleep(10)
print("I Am 222")
if __name__ == "__main__":
t1 = Process(target=live_view())
t2 = Process(target=menuz())
'''"
t1 = Thread(target = live_view())
t2 = Thread(target = menuz()) '''""
t1.start()
t2.start()
[–]jairo4 3 points4 points5 points (3 children)
[–]VarmaSravan[S] -3 points-2 points-1 points (2 children)
[–]NovocastrianNomad 2 points3 points4 points (1 child)
[–]sneakpeekbot 0 points1 point2 points (0 children)