File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Multitread synchronization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Multitread synchronization" Watch "Multitread synchronization" New topic

Multitread synchronization

Anand Nuchchi

Joined: Apr 15, 2006
Posts: 27
Hi all,

Am using the multithreads in the program.
In my program am using 3 text files.
a.txt,b.txt and c.txt.
a.txt should be read by thread A,
b.txt should be read by thread B,
c.txt is blank file so using thread C, I want to write the containts of a.txt and b.txt.

Up to now i tried only simple thread progrms and new for plz giude.
thanks in advance

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15092

Hello Anand,

Please tell us what you tried, maybe post some source code, explain exactly where you get stuck. Right now your question is too general and vague, so it's hard to help you effectively.

If you want to learn more about multithreading, please read the following tutorial: Threads: Doing Two or More Tasks at Once
And for I/O: I/O: Reading and Writing

If you have more specific questions, feel free to ask them here.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: Multitread synchronization
It's not a secret anymore!