Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multitread synchronization

 
Anand Nuchchi
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


---anand
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15272
37
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic