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. C#
  4. Static objects and terminal server

Static objects and terminal server

Scheduled Pinned Locked Moved C#
questionsysadminxml
4 Posts 3 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.
  • F Offline
    F Offline
    fredsparkle
    wrote on last edited by
    #1

    I guess this is more a virtual machine question. We struggling with a project that reads a lot of tiny xml files mostly static files to build a action table. Each user can get multiple instances of control interface that uses these action tables. The first obvious enhancement is to build the tables on a back ground thread; though by using a static object the files only have to be read once and shared among the control instances. My question is if there are multiple users on a terminal server machine do they share the same static object? Thanks

    M S 2 Replies Last reply
    0
    • F fredsparkle

      I guess this is more a virtual machine question. We struggling with a project that reads a lot of tiny xml files mostly static files to build a action table. Each user can get multiple instances of control interface that uses these action tables. The first obvious enhancement is to build the tables on a back ground thread; though by using a static object the files only have to be read once and shared among the control instances. My question is if there are multiple users on a terminal server machine do they share the same static object? Thanks

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      fredsparkle wrote:

      I guess this is more a virtual machine question.

      What are you doing in C# thn? ;P

      Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      F 1 Reply Last reply
      0
      • M Manas Bhardwaj

        fredsparkle wrote:

        I guess this is more a virtual machine question.

        What are you doing in C# thn? ;P

        Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

        F Offline
        F Offline
        fredsparkle
        wrote on last edited by
        #3

        Syntax assitance and command history for various command line driven remote interfaces from various vendors.

        1 Reply Last reply
        0
        • F fredsparkle

          I guess this is more a virtual machine question. We struggling with a project that reads a lot of tiny xml files mostly static files to build a action table. Each user can get multiple instances of control interface that uses these action tables. The first obvious enhancement is to build the tables on a back ground thread; though by using a static object the files only have to be read once and shared among the control instances. My question is if there are multiple users on a terminal server machine do they share the same static object? Thanks

          S Offline
          S Offline
          S Senthil Kumar
          wrote on last edited by
          #4

          fredsparkle wrote:

          My question is if there are multiple users on a terminal server machine do they share the same static object?

          No. Each application instance has its own instance of a static object.

          Regards Senthil [MVP - Visual C#] _____________________________ My Blog | My Articles | My Flickr | WinMacro

          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