Thread: Threads

Results 1 to 5 of 5
  1. #1 Threads 
    Registered Member

    Join Date
    Oct 2007
    Posts
    1,063
    Thanks given
    155
    Thanks received
    162
    Rep Power
    286
    I was actually wondering what you guys say:

    I ran my server for several weeks with 1 thread per client. (process time 20ms)
    60% of all players said they are lagging.

    I turned it back to 1 thread per client and nobody had lag problems.


    What do you guys think about it?
    Reply With Quote  
     

  2. #2  
    Programmer, Contributor, RM and Veteran




    Join Date
    Mar 2007
    Posts
    5,147
    Thanks given
    2,656
    Thanks received
    3,731
    Rep Power
    5000
    How did you do the non-threaded way? (I assume by "I ran my server for several weeks with 1 thread per client" you actually meant "1 thread").

    If you used my tutorial it polls every 500ms so of course there will be some lag, I am working on an NIO version using a selector. Trouble is is that it gets even more confusing for most people here, and that tutorial was big/confusing enough.
    .
    Reply With Quote  
     

  3. #3  
    Registered Member
    Tom's Avatar
    Join Date
    Jul 2006
    Age
    30
    Posts
    1,148
    Thanks given
    8
    Thanks received
    87
    Rep Power
    902
    This post has broken the following Rune-Server rule(s):

    * Flaming.

    Please follow the Rune-Server rules.
    -Stormrider
    uh
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Oct 2007
    Posts
    1,063
    Thanks given
    155
    Thanks received
    162
    Rep Power
    286
    How did you do the non-threaded way? (I assume by "I ran my server for several weeks with 1 thread per client" you actually meant "1 thread").

    If you used my tutorial it polls every 500ms so of course there will be some lag, I am working on an NIO version using a selector. Trouble is is that it gets even more confusing for most people here, and that tutorial was big/confusing enough.


    I did it ages ago, but made it working like 1 month ago.
    How about we make one together?





    Well obviously if you're still using standard io + single threads you're going to lag, idiot.
    http://java.sun.com/j2se/1.4.2/docs/guide/nio/

    Checking out the site.
    And... i have java 1.6.07.
    Reply With Quote  
     

  5. #5  
    xjohnnyx1100
    Guest
    i hate beiing a novice at java just like i used to be at html and vb6 and vb8
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Tags for this Thread

View Tag Cloud

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