Results 1 to 4 of 4
Hi I run two copies of my test application on the same machine (Windows and Linux OSs). One application acts as sender and the other one as receiver. Running it ...
- 02-25-2009 #1Just Joined!
- Join Date
- Feb 2009
- Posts
- 3
app send-receive performance problem running using Linux (Mono)
Hi I run two copies of my test application on the same machine (Windows and Linux OSs). One application acts as sender and the other one as receiver. Running it on Windows gives a same result for sending and receiving sides.
Testing it on Linux (using Mono) gives different result: sender sends msgs as twice quicker than the other instance of an application revives it. I use Mono 2 and SUSE Linux 10 Server
Does anyone has any idea why it is happening? Is it to do with Mono or Linux?
Please let me know if you need any additional information. Any help is much appreciated!
Cheers
- 02-25-2009 #2
Sounds like a handshake problem. You want to block sending until the receiver acknowledges the receipt of the previous message.
- 02-25-2009 #3Just Joined!
- Join Date
- Feb 2009
- Posts
- 3
yeh it could be - where do that in my application? If yes why does it work fine in Windows and not Linux/Mono?
- 02-25-2009 #4
Where you send the data/message
pseudo code
SendFirstblock()
DO WHILE BlocksLeft .AND. (!RecieveAk() .OR nottimout)
SendNexBlock()
ENDDO
.Net and mono are different mono is a subset of the .Net language.
It sounds like mono is faster then .Net in this case or maybe a difference in how the handshaking is handled for the protocol you are using.


Reply With Quote