pSpaces / jSpace

Programming with Spaces in Java
MIT License
17 stars 13 forks source link

Updated RemoteSpace to have a gate for each thread, to avoid threads … #26

Open JBcoding opened 4 years ago

JBcoding commented 4 years ago

…with blocking calls blocking other threads

If two threads, T1 and T2 share a RemoteSpace object, and T1 makes a blocking call like get, then T2 can not use the RemoteSpace before T1's get terminates.

This is fixed by adding a gate for each thread, identified by the thread id.