Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How to inform a user-level thread an upcoming context switch


    Within a pthread program, is there a way to write codes to explicitly check upcoming context switch behavior on this thread (e.g. check some signals sent from OS scheduler)?



  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Not as far as I know. It may be possible if you modified the kernel to issue a signal to your application, but I don't know that this is currently possible. Have you posted this question on forums?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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