Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Regarding multiple traci parallel execution

You can use traci.getFreeSocketPort() to get a free port. Reusing the port after the simulation has finished should work but there may be a delay before the port is really freed by the operating system.

Am So., 6. Jan. 2019 um 17:50 Uhr schrieb Pratik Dutta <pratikcsc@xxxxxxxxx>:
Hello Everyone.
I am using traci using python. I have this scenario which i am seeking the solution for.
outer traci method 
    {contains for each simulation step}
           n number of independent traci methods (diffent sumocfg file) execute in parallel
           join all inner traci

I am using python-multiple thread for outer traci.
the question is how to use parellel inner traci simultaneously? I am using n number of thread for inner operations. All thread contains traci (inner). But when the operation of any traci operation ends it collapses all the traci/
should i use different port number ? if so how to get n valid and free port number?
can i use older port number if previous traci has finished the job?

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top