[concurrency-interest] Fork Join framework implementation in java 1.6
gregg at cytetech.com
Sat Oct 6 12:58:03 EDT 2012
On 10/6/2012 3:44 AM, Pravin Nawale wrote:
> Hi ,
> I implemented java fork and join framework (jdk 1.6 using jsr166.jar) in my
> application. During user login or performing any operation, called fork and join
> framework which perform 3-4 tasks in parallel ,gather data and return it to the
> Note : For each login request or operation I am creating one fork/join
> But facing major problem -
> During 4-5 users logging simultaneously , response swapped between users. i.e.
> if user A,B,C,D,...logging in simultaneously then B's response send to other
> user randomly. If I remove fork and join then it wirk fine.
It sounds like your "login requests" do not have per user data items, but rather
share some global data which you have a data race on the use of.
More information about the Concurrency-interest