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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. The Lounge
  3. Real Time System Using COM

Real Time System Using COM

Scheduled Pinned Locked Moved The Lounge
questioncomdesignsysadmin
9 Posts 6 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.
  • L Offline
    L Offline
    leonwoo
    wrote on last edited by
    #1

    Dear expert...some challenging questions. Hope you enjoy them. 1. Is it possible to develop a real time application(not a service) that runs on win2000 server with dual processors? The application will be accessed by more than one client and that the application/server should retain its perfromance. The scope of access is limited in a LAN only. 2. What is the bottleneck in developing such application? 3. Can Win2000 automatically allocate threads to every processor? 4. You know where to find information about real time system design and development? so that everyone can share the knowledge cheers. ~sharing makes u more knowledgeable and expert~ John Woo

    P T P T 4 Replies Last reply
    0
    • L leonwoo

      Dear expert...some challenging questions. Hope you enjoy them. 1. Is it possible to develop a real time application(not a service) that runs on win2000 server with dual processors? The application will be accessed by more than one client and that the application/server should retain its perfromance. The scope of access is limited in a LAN only. 2. What is the bottleneck in developing such application? 3. Can Win2000 automatically allocate threads to every processor? 4. You know where to find information about real time system design and development? so that everyone can share the knowledge cheers. ~sharing makes u more knowledgeable and expert~ John Woo

      P Offline
      P Offline
      Philip Fitzsimons
      wrote on last edited by
      #2

      1. yes. 2. overhead of sending messages & making initial connection. Also consider memory use per connection. 3. hmm, why would you want to that? this is not nesc. the most efficient arrangement, but yes it will allocate threads in a way that is efficient if you use COM+. 4. msdn.


      "When the only tool you have is a hammer, a sore thumb you will have."

      1 Reply Last reply
      0
      • L leonwoo

        Dear expert...some challenging questions. Hope you enjoy them. 1. Is it possible to develop a real time application(not a service) that runs on win2000 server with dual processors? The application will be accessed by more than one client and that the application/server should retain its perfromance. The scope of access is limited in a LAN only. 2. What is the bottleneck in developing such application? 3. Can Win2000 automatically allocate threads to every processor? 4. You know where to find information about real time system design and development? so that everyone can share the knowledge cheers. ~sharing makes u more knowledgeable and expert~ John Woo

        T Offline
        T Offline
        Tomaz Stih 0
        wrote on last edited by
        #3

        No. There is no way to predict the duration of execution of your functions - and that is the foundation for real time. I.e. you're only real time when you prove that your code will execute within nnn millisecs...if you can assume it but can't prove it then you're a real-time gambler. It might work for, but I would not use it for devices that might cause serious damage or even loss of life. Tomaz

        C 1 Reply Last reply
        0
        • L leonwoo

          Dear expert...some challenging questions. Hope you enjoy them. 1. Is it possible to develop a real time application(not a service) that runs on win2000 server with dual processors? The application will be accessed by more than one client and that the application/server should retain its perfromance. The scope of access is limited in a LAN only. 2. What is the bottleneck in developing such application? 3. Can Win2000 automatically allocate threads to every processor? 4. You know where to find information about real time system design and development? so that everyone can share the knowledge cheers. ~sharing makes u more knowledgeable and expert~ John Woo

          P Offline
          P Offline
          Phil J Pearson
          wrote on last edited by
          #4

          According to a strict definition of "real-time" the answer is NO. Win2000 (or any other version in the same lineage) is NOT a real-time operating system. These versions of Windows are not deterministic (not intended to be). Windows CE3.0 is much more nearly real-time and may be appropriate for some applications. Windows Embedded is even better. See http://www.microsoft.com/windows/Embedded/community/experto/july2002/jaokeefe.asp[^] for example. But maybe you didn't really mean "real-time"?


          The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).

          P 1 Reply Last reply
          0
          • P Phil J Pearson

            According to a strict definition of "real-time" the answer is NO. Win2000 (or any other version in the same lineage) is NOT a real-time operating system. These versions of Windows are not deterministic (not intended to be). Windows CE3.0 is much more nearly real-time and may be appropriate for some applications. Windows Embedded is even better. See http://www.microsoft.com/windows/Embedded/community/experto/july2002/jaokeefe.asp[^] for example. But maybe you didn't really mean "real-time"?


            The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).

            P Offline
            P Offline
            Philip Fitzsimons
            wrote on last edited by
            #5

            i'm betting on the english definition of real time :)


            "When the only tool you have is a hammer, a sore thumb you will have."

            T 1 Reply Last reply
            0
            • T Tomaz Stih 0

              No. There is no way to predict the duration of execution of your functions - and that is the foundation for real time. I.e. you're only real time when you prove that your code will execute within nnn millisecs...if you can assume it but can't prove it then you're a real-time gambler. It might work for, but I would not use it for devices that might cause serious damage or even loss of life. Tomaz

              C Offline
              C Offline
              Christopher Duncan
              wrote on last edited by
              #6

              Absolutely correct. Personally, I invoke the "close enough for rock & roll" test. Quite literally, in fact. I recently wrote an app to control concert lighting fixtures, moving lights, strobes, etc. via the DMX protocol. My hardware gizmo refreshes the DMX buffer in the lighting chain approximately every 25 milliseconds. The threads in my application code, of course, have no guarantee of getting service (or even a table, for that matter). However, those constraints notwithstanding, I was able to control "real time" lighting effects in synch with the music. You know it's not real time. I know it's not real time. The people at the gig, of course, don't. Close enough for rock & roll... Chistopher Duncan Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)

              1 Reply Last reply
              0
              • L leonwoo

                Dear expert...some challenging questions. Hope you enjoy them. 1. Is it possible to develop a real time application(not a service) that runs on win2000 server with dual processors? The application will be accessed by more than one client and that the application/server should retain its perfromance. The scope of access is limited in a LAN only. 2. What is the bottleneck in developing such application? 3. Can Win2000 automatically allocate threads to every processor? 4. You know where to find information about real time system design and development? so that everyone can share the knowledge cheers. ~sharing makes u more knowledgeable and expert~ John Woo

                T Offline
                T Offline
                Tim Smith
                wrote on last edited by
                #7

                As others have said, NT just really isn't an RT OS out of the box. It can be made to be RT, but that is usually not people want. COM works just fine in process control. Tim Smith "Programmers are always surrounded by complexity; we can not avoid it... If our basic tool, the language in which we design and code our programs, is also complicated, the language itself becomes part of the problem rather that part of the solution." Hoare - 1980 ACM Turing Award Lecture

                1 Reply Last reply
                0
                • P Philip Fitzsimons

                  i'm betting on the english definition of real time :)


                  "When the only tool you have is a hammer, a sore thumb you will have."

                  T Offline
                  T Offline
                  Tim Smith
                  wrote on last edited by
                  #8

                  Mostly stupid managers and specification writers who don't know what RT really means. We beat people over the head and tell them that their definition of RT usually ment "Having enough CPU resources to get the job done in the expected amount of time, usually." Tim Smith "Programmers are always surrounded by complexity; we can not avoid it... If our basic tool, the language in which we design and code our programs, is also complicated, the language itself becomes part of the problem rather that part of the solution." Hoare - 1980 ACM Turing Award Lecture

                  P 1 Reply Last reply
                  0
                  • T Tim Smith

                    Mostly stupid managers and specification writers who don't know what RT really means. We beat people over the head and tell them that their definition of RT usually ment "Having enough CPU resources to get the job done in the expected amount of time, usually." Tim Smith "Programmers are always surrounded by complexity; we can not avoid it... If our basic tool, the language in which we design and code our programs, is also complicated, the language itself becomes part of the problem rather that part of the solution." Hoare - 1980 ACM Turing Award Lecture

                    P Offline
                    P Offline
                    Philip Fitzsimons
                    wrote on last edited by
                    #9

                    surely "stipud managers" has a redundant word in it ;P


                    "When the only tool you have is a hammer, a sore thumb you will have."

                    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