Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Threading Priority?

Threading Priority?

Scheduled Pinned Locked Moved Visual Basic
sysadminquestionhardwareperformance
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    Yona Low
    wrote on last edited by
    #1

    I’m creating a network application which consists of a server and client-both windows applications, for each client that connects to the server the server will create a thread to handle that clients requests. One of the features will need to have very accurate and fast transfers between the client and server, which means that the server will need to run very efficiently, since I don’t want to restrict the server to run on dedicated hardware I was thinking of making the priority higher, which brings me to my question: Should I set each thread that handles a client to a higher priority, or should I set the process from the server application to a higher priority. And will I achieve better performance if I set both to a higher priority or setting one to high is the same as setting both (in other words, does windows have 5 levels of priority or 25 (5x5) levels of priority? ) Answers to any part of this post will be greatly appreciated.

    N 1 Reply Last reply
    0
    • Y Yona Low

      I’m creating a network application which consists of a server and client-both windows applications, for each client that connects to the server the server will create a thread to handle that clients requests. One of the features will need to have very accurate and fast transfers between the client and server, which means that the server will need to run very efficiently, since I don’t want to restrict the server to run on dedicated hardware I was thinking of making the priority higher, which brings me to my question: Should I set each thread that handles a client to a higher priority, or should I set the process from the server application to a higher priority. And will I achieve better performance if I set both to a higher priority or setting one to high is the same as setting both (in other words, does windows have 5 levels of priority or 25 (5x5) levels of priority? ) Answers to any part of this post will be greatly appreciated.

      N Offline
      N Offline
      nlarson11
      wrote on last edited by
      #2

      I think it would depend on what else is going happening on the server. if you don't have a lot of activity i would leave the priority where it is. i built an application that handles threads like you have for developers to "bounce" IIS when there is a vb6 dll that has to be replaced. I also through in IM and Chat for some extra features. I have never noticed any slowness no matter how much activity my server piece is getting and each response is close to immediate.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups