Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    3

    Question 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

  2. #2
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    Sounds like a handshake problem. You want to block sending until the receiver acknowledges the receipt of the previous message.

  3. #3
    Just 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?

  4. #4
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...