Reading Stream using Threading ??

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

Client/Server Program using Sockets...

Server sends request in form of CSV format in NetworkStream...
So I want to read this using threading because it is in very large volume
so threading is faster for that....

But how I read stream using threading...?
or any other suggestion...

Thanx & Regards
--
Ather Murtuzapurwala
Software Engineer
Mumbai,India

A man of trial is a man of success
 
Hi
So I want to read this using threading because it is in very large volume
so threading is faster for that....

Since when did this happen? An common misunderstanding is to say that
threading is faster.
This was not true in the past, this is not true in the current and I'm not
sure for the future. But my guess is as good as any other. Threading is
often introduced when the developer choose the wrong algorithm or structure.

A csv parser should not be slow. Optimize your routine, read about
stringbuilder, fixed, ... Make your routine fast (or search one) and you
don't need threading. When you stay single threaded, you will have a
million bugs less.

kind regards

Alexander
 
Hi Alexander Muylaert,

Thanx for quick reply & sorry for delay from my side....

Ur ans abt multithreding is very awesome....

Thanx its very useful....

If u have any good link or code abt csv parser then pls mail to me or send
in this group...

Thanx ...
Ather
 
Back
Top