Python Forum
How to run same process simultaneously
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to run same process simultaneously
#2
Try
procs = []
for i in range(5):
    p = subprocess.Popen(['java','-jar','/root/Linux/ArhivareProd.jar'])
    procs.append(p)
from p in procs:
    p.wait()
Reply


Messages In This Thread
RE: How to run same process simultaneously - by Gribouillis - Sep-19-2019, 10:08 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to sharing object between multiple process from main process using Pipe Subrata 1 3,667 Sep-03-2019, 09:49 PM
Last Post: woooee
  Control 2 stepper motor simultaneously jihene 2 4,023 May-08-2019, 05:27 PM
Last Post: DeaD_EyE
  Moving with objects simultaneously kom2 1 3,026 Apr-20-2019, 07:12 PM
Last Post: SheeppOSU
  using subpocess for both reading and writing simultaneously dauriac 11 9,671 May-30-2018, 10:09 PM
Last Post: killerrex
  controlling multiple server simultaneously. caligola 3 3,610 May-11-2018, 05:44 PM
Last Post: wavic
  How to define two functions run simultaneously within a function? Alberto 4 4,041 Feb-06-2018, 10:08 PM
Last Post: Alberto
  Modifying / extracting multiple list items simultaneously using variable from range ehammarlund 4 3,697 Dec-06-2017, 08:15 PM
Last Post: ehammarlund

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020