• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

multithreading issue

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In a single session say I am running 5 threads all r trying to access a method which have used input/output stream.When one thread entered the method....it used the input/output stream and closes it.At same point of time some other thread when trying to execute the method its throwing exception like either input stream is close or inputstream read fully.I overcome the problem by synchronizing the method.My question is how can we implement multithreading without synchronizing the method or using synchronized statement...i mean without synchronizing input/output streams object.Any idea?
 
reply
    Bookmark Topic Watch Topic
  • New Topic