• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Multitread synchronization

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic