G
Günther Stößl
Hello,
I am porting programms from Windows to Java.
No I am stuck with following problem:
In these applications following scenario is often used:
Main working Thread waits on several socket channels for arrival of
data but uses also a lot of semaphores to notify about messages from
other threads:
Channel data and semaphores are combined in one call to
WaitForMultipleObjects.
With java.nio I can use selectors for the channel data, but I see no
possibility for parallel waiting on other Objects.
Even with Doug Leas java.cocurrent library I dont see how to solve
above problem
Does somebody jave ideas how above problems can be solved ?
Thanks
Günther
I am porting programms from Windows to Java.
No I am stuck with following problem:
In these applications following scenario is often used:
Main working Thread waits on several socket channels for arrival of
data but uses also a lot of semaphores to notify about messages from
other threads:
Channel data and semaphores are combined in one call to
WaitForMultipleObjects.
With java.nio I can use selectors for the channel data, but I see no
possibility for parallel waiting on other Objects.
Even with Doug Leas java.cocurrent library I dont see how to solve
above problem
Does somebody jave ideas how above problems can be solved ?
Thanks
Günther