I've ten different adb commands and want to execute it concurrently as a separate process . I've used subprocess module & but process doesn't seem to run concurrently. Is there an efficient method in python to run process concurrently? My code snippet is below
def run(com):
sub = subprocess.Popen(command, shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
return sub.communicate()
cmd =[adb commands 1 to 10]
for i in cmd:
run(i)