TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
aun_ee
NA
7
0
Synchronizing Two Threads
Mar 24 2005 7:31 PM
I have two threads sharing an Arraylist. Thread 1 adds an object to the arraylist whereas thread 2 reads and remove the object from the array list. I want to synchronize them such that, whenever thread 1 has something to add to the list it should get full control of the arraylist and not have to wait for any lock ,whereas thread 2 can read and remove data from the list whenever thread 1 is not using it annd should unlock it as soon as thread 1 gets a data to write. Any ideas what will be a good technique to implement it? Thanks,
Reply
Answers (
3
)
Import XML into MS Access table
Application load and performance testing