none
Change the time slice in wince 6 RRS feed

  • Question

  • Hi all,

     

    Is there a way to change the time slice of all the threads running under wince 6 os from 100ms to say 30ms.

     

    In Linux OS its possible but i am not aware if we can do it on wince6 and how ?

     

    Regards,

    Misbah


    Senior Design Engineer T.E.S Electronic Solutions (Bangalore-India) www.tesbv.com email-misbah.khan@tesbv.com
    Tuesday, March 15, 2011 8:44 AM

Answers

All replies

  • you can use ceSetThreadQuantam() to do that. See the msdn link

    http://msdn.microsoft.com/en-us/library/ee488622.aspx


    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    Tuesday, March 15, 2011 9:03 AM
  • If you want to change the quantum for all the threads and you have access to the source code you may set the dwDefaultThreadQuantum variable to the desired value so that any thread, when it's created has that specific time quantum. CeSetThreadQuantum on the other way must be called for each thread which may not be handy
    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    Tuesday, March 15, 2011 9:26 AM
  • I agree with Luca. I thought you are asking for a single thread. you can use the above given variable to set the default thread quantam for all thread. see the below link

    http://msdn.microsoft.com/en-us/library/ee479383.aspx


    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    Tuesday, March 15, 2011 9:38 AM
  • Thanks Luca,

     

    I have the access to the source code. Can you please tell me where shall i change "dwDefaultThreadQuantum" variable.

     

    regards,

    Misbah

     


    Senior Design Engineer T.E.S Electronic Solutions (Bangalore-India) www.tesbv.com email-misbah.khan@tesbv.com
    Tuesday, March 15, 2011 10:00 AM
  • it is a part of OAL, so you can use it in OEMInit()
    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    Tuesday, March 15, 2011 10:17 AM
  • Tuesday, March 15, 2011 10:23 AM