Can anyone tell me why the following code gives the error "cannot start a process twice"? By my reckoning, p1 and p2 should already have been force-closed by the p.terminate() command
EDIT: Have added in some more code to give context - wanted to come up with a simple example but left out the while loops
import time
import os
from multiprocessing import Process
import datetime
def a():
print ("a starting")
time.sleep(30)
print ("a ending")
def b():
print ("b starting") …Run Code Online (Sandbox Code Playgroud)