A
archana
Hi all,
I am having one arraylist which i want to share accross threads.
What i am doing is traversing through element of arraylist in both the
thread. Means just reading element of that arraylist.
So my question is do i need to use lock while traversing. As i am not
updating inserting or deleing any element of arraylust, so i think it
should not ask for locking.
Please help me asap.
thanks in advance.
I am having one arraylist which i want to share accross threads.
What i am doing is traversing through element of arraylist in both the
thread. Means just reading element of that arraylist.
So my question is do i need to use lock while traversing. As i am not
updating inserting or deleing any element of arraylust, so i think it
should not ask for locking.
Please help me asap.
thanks in advance.