cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vadlamudianil
Adventurer
Adventurer
4,840 Views
Registered: ‎11-02-2014

performance with IP reuse issue

 

 

i am running an application on linux and application is multhithreaded where performance is critical in my application .

 

my thread uses an ip to perform a task i have a driver program running to handle device.

 

my concerned doubt is since every thread uses same device(IP) on processing one thread input other thread input is blocked so  can i go for same

hardware ip with multiple instant one for each thread.   or any other solution help me..-----------------------------

 

 

 

 

 

+

 

 

 

 

0 Kudos
1 Reply
korcek
Participant
Participant
4,826 Views
Registered: ‎02-11-2009

As far as I understand your problem you have multithreaded application, where number of threads is more than one. Threads are accessing the same device (IP) and the race condition occurs? If so, and there is no need to have just one device, you can instantiate two (or more) such devices (if it si possible). But you have to instruct each thread to access its device (e.g. using different address space).

--
Research Assistant at Brno University of Technology | CEO at RehiveTech spin-off company
0 Kudos