Hello,
I think you have a problem because it should not eat 100% CPU nor
freeze your system.
regards.
imc Hello
imc Is there a way to limit the cpu usage when receiving files thru TWsocket?
imc Usualy CPU is 90-100% used and the computer freezes for the time the
transfer is made.
imc Radu
Is there a way to limit the cpu usage when receiving files thru TWsocket?
Usualy CPU is 90-100% used and the computer freezes for
the time the transfer is made.
TWSocket component doesn't use much of the CPU. It is likely that in your
application you've done
some wait loop which eat all CPU.
Hello Radu,
It is also possible if you send / receive very mutch data at high speed
and save to disk or so. This take some time and meanwhile next chunck is
probably already received.
If this is the reason then you can slow down the sending a little by
waiting a littel between data chuncks. You
- Original Message -
From: Francois Piette [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Thursday, March 16, 2006 3:46 PM
Subject: Re: [twsocket] twsocket cpu usage
Is there a way to limit the cpu usage when receiving files thru TWsocket?
Usualy CPU is 90-100% used
: [twsocket] twsocket cpu usage
Hello Radu,It is also possible if you send / receive very mutch data at high
speedand save to disk or so. This take some time and meanwhile next chunck
isprobably already received.If this is the reason then you can slow down the
sending a little bywaiting a littel
Indeed the data transfered is continously transfered at high speed and it is
written directly to disk.
Which is the best method I could use to slow cpu usage?
- make a timer and send data whith interrupts (but how to make a timer whith
0.2 seconds step for example?)
- find somehow a
, Wilfried Mestdagh [EMAIL PROTECTED] wrote:
imc From: Wilfried Mestdagh [mailto: [EMAIL PROTECTED]
imc To: twsocket@elists.org
imc Date: Thu, 16 Mar 2006 14:55:13 +0100
imc Subject: Re: [twsocket] twsocket cpu usage
imc Hello Radu,It is also possible if you send / receive very mutch data
Or throttle the sending of the data in the sender application. Now you
have probably something like this:
Socket.Send(DataChunck, Len);
in SocketDataSent:
SendNext;
in SendNext:
// read next chunck from file
Socket.Send(DataChunck, Len);
== you can change thsi as follow ==
Hello!
Is there a way to limit the cpu usage when receiving files thru TWsocket?
Usualy CPU is 90-100% used and the computer freezes for the time the transfer
is made.
If you write in a random sized chunks (especially byte-per-write), use
some kind of write-buffering filestream (AFAIR Arno