Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8748831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:35:33+00:00 2026-06-13T12:35:33+00:00

I would like to know if everyone knows how precise PTP synchronization can be

  • 0

I would like to know if everyone knows how precise PTP synchronization can be guaranteed on Windows Server 2008.

I know about this thread: What is the minimum guaranteed time for a process in windows?
which discusses windows’ native time and yes, this does not give any guarantees at all.

But what when it comes to hardware solutions (PTP)? Are there any limitations preventing a guarantee of < 1ms? I know the processes depending on the time will be competing for CPU time but if the process DOES have CPU time when needed, are there anything else the might come in the way?

EDIT 1: I added “(compared to Linux)” to the title, as this was originally one of my concerns.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:35:34+00:00Added an answer on June 13, 2026 at 12:35 pm

    A few things can be arranged to obtain reliable process times on Windows Server 2008.
    Some of them are:

    1. Avoiding heavy load on the CPU.

    2. Arrange for small memory footprint of the code.

    3. Set the process priority class and the thread priority high. Possibly even as high as REALTIME_PRIORITY_CLASS and THREAD_PRIORITY_TIME_CRITICAL respectively.

    4. Set the thread affinity mask to avoid that the time critical part runs on Core 0. Core 0 is dedicated to some of the system services. Using a different code avoids dependencies.

    5. Use of Sleep(0) when appropriate. Sleep(0) is an asynchronous service and forces the scheduler to react. This way you can trigger the scheduler which will choose your process/thread to get CPU immedeately since it has utmost priority.

    6. Ensure that the code does give time to other services too. Utmost priority will cause all other threads to basically stop. (no mouse events or whatsoever will be processed)

    7. Possibly increase the systems interrupt frequency by means of the mutimedia timer API. Use the timeGetDevCaps function to query the maximum allowed interrupt frequency of your system and use timeBeginPeriod with wPeriodMin returned by timeBeginPeriod in the TIMECAPS structure. This will force your system to run at its maximum interrupt frequency. Don’t forget to release the multimedia timer resource by a call to timeEndPeriod when you are done.

    When these rules are carfully followed, accurate timing into the 10 microsecond regime is obtainable with ver high reliability. However the sum of all the above results in some complexity. Therefore a guarantee can never be given. But even on RTOS systems there is no such guarantee. When coding is not done properly things don’t work the way they are supposed to do, no matter what/how the OS is called. Some more notes and links to the equivalent .Net services can be found here.

    Taking all this enables the implementation of time synchronization (Precision Time Protocol) down to a few 10 microseconds.

    Precision Time Protocol developers faq can be found here.

    Edit after Linux was askted for too: There are some packages available, for example this one. Typical accuracies reported here are in the 10 to 100 microsecond range too.

    Not surprisingly the results are very similar for Windows and Linux when running on comparable standard hardware. Non of the two can do anything magic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i would like know some reference. I know i can googling it. but prefer
I would like to know, how can we change the SRC url for IFRAME
I would like to know how. I have looked at this topic , and
I would like to know that how we can check the available memory in
I have been looking around and would like to know what everyone uses to
I would like some opinion, example and code on how everyone dose this.. So
Before I start I would just like everyone know that I did indeed spend
Hi everyone i would like to know that how to make the provisioning profile
Hi everyone im new to php and would like to know how if it
Would like to know what a programmer should know to become a good at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.