Which InputStream should I use for multhreaded access??

Put your problem here if it does not fit any of the other categories.

Which InputStream should I use for multhreaded access??

Postby amitku » Wed Mar 23, 2011 9:10 am

Hi all,

For video streaming from 4 IP cameras I am using DataInputStream. I create 4 instances of DataInputStream which contain responses from 4 URLs as BufferedInputStream and these are accessing from 4 threads. As we know DataInput
Stream is not safe for multithreaded access and it sometime causing problem. So which InputStream should I use in this case?? Please help me.
amitku
Junior Developer
Junior Developer
 
Posts: 15
Joined: Wed Mar 02, 2011 9:10 am
Location: Bangladesh

Top

Re: Which InputStream should I use for multhreaded access??

Postby imbroken » Thu Mar 24, 2011 9:30 am

maybe it's enough to synchronize the part where the streams are read?
imbroken
Senior Developer
Senior Developer
 
Posts: 131
Joined: Thu Jan 06, 2011 6:57 pm
Location: Germnay

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot] and 9 guests