Why does that entire thread goes to sleep when we put a wait function in time critical loop?

why does that entire thread goes to sleep when we put a wait function in time critical loop but not when it is not time critical

Norbert B wrote:
Ujjval,
in a RT system, priorities have (in general) increased effect on the execution of the application.
It is recommended that you only have a single task in your RT program at "time critical". If you have two task "time critical" (that means you are running into issues caused by your quoted "feature"), you have a flaw in your application architecture.
Since LV 7.1, it is recommended to work with Timed Loops in order to prioritize tasks on a RT system. Timed Loops are executed on priorities between "time critical" and "above normal". Each Timed Loop will execute its content in a single thread in order to keep a good overview of the timing (like finished late [i-1]). Using those structures (and according settings) in a reasoned manner will prevent your RT system to run into priority issues.
Ujjval Shah wrote:
[...]also i would really appreciate if i can get more documentations regarding how LV creates threads and assigns subvis to them[...]
You will have a real hard time to go into this very deep. This is the feature of LV: you can just use multithreading (multicores) without the needed knowledge of scheduling and load balancing. This makes LV programming in general very easy in comparison to e.g. ANSI C (in regard of multithreading). So creation of threads, distribution of tasks to the threads are abstracted and most often not visible to the programmer.
There are some switches and levers you can "play around" in order to make LV to behave differently in this matter. But this most often requires  deep LV knowledge and cannot be explained in a simple posting.....
hope this helps,
Norbert 
Amen to that!
The question can not be fully answered without digging into the internals of the OS LV is run on because LV works with the OS and lets it do the scheduling.
Yes that note applies to pre- LV 7 RT. When run under RT the ONE Time Critical loop was guarenteed to stay determinisitic.
Since then the Timed Loop was introduced that allowed multiple levels of priority and later allowed us to assign which CPU the code would run on.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • Why does my macbook pro "goes to sleep" when charging?

    Why does my macbook pro "goes to sleep" when charging? It is working fine without charging but once I attach the charger to my laptop, it just blacks out or goes to sleep mode and I can't wake it up unless I unpluck the charger.
    I read from threads that it is a logic board problem....How do I solve this problem?

    Try an SMC reset. Follow the method for "a battery you should not remove yourself."
    http://support.apple.com/kb/ht3964

  • Why does my Macbook keep going to sleep every 10-20 secs!

    why does my Macbook keep going to sleep every 10-20 secs when first turning on then it seems ok after about 10 mins ? This has only happened since upgrding to Lion 3 days ago, it's driving me mad!

    You are most welcome

  • Why does my Ipad keep going to sleep while playing HBOgo?

    Why does my Ipad keep going to sleep while playing HBOgo?  I have to tap the screen every 10 minutes to keep it awake. This doesn't happen with any other streaming app. 

    You are most welcome

  • Why does it say my password is incorrect when prompted to enter it a second time when setting up a hotmail account??

    Why does it say my password is incorrect when prompted to enter it a second time when setting up a hotmail account??

    Make sure you enter your Apple Store account with the correct CaSe on both username and password on the AppleTV.     Make sure your AppleTV is in fact connected to the internet.

  • Why does my external display go to sleep when opening an X11 window?

    I'm on a 27in late 2012 iMac with Yosemite. I recently added an external monitor connected through one of the Thunderbolt ports (with a VGA adapter). I use X11 frequently - when I open an X11 program in the external monitor or drag an X11 window into that space, much of the time the display goes to sleep immediately, until I either drag the window back out or exit X11. Does anybody know why this is happening? Sometimes I can open X11 applications right through terminal in the new display, but even then they frequently look unstable, flashing and blinking.
    Thank you!

    Try resetting PRAM and SMC.
      Reset PRAM:   http://support.apple.com/kb/PH14222
    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the appropriate method.
    "Resetting SMC on portables with a battery you should not remove on your own".

  • Why does my macbook pro go to sleep when i move it?

    I'll be sitting a my desk and decide to slightly move my macbook pro so its facing me a little better and it will go to sleep.
    I have a MacBook Pro (retina display) 13-inch, which I bought in February 2014.
    It happened both when I had it connected to power and when it was running just off battery.
    I was watching youtube videos at the time, and now that I've stopped the problem has gone away.
    What would youtube have to do with my macbook going to sleep?
    And now I've gone back into youtube and its not doing it anymore, so confused?

    Try resetting PRAM and SMC.
      Reset PRAM:   http://support.apple.com/kb/PH14222
    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the appropriate method.
    "Resetting SMC on portables with a battery you should not remove on your own".

  • Why does my iPad 4 keep shuting off when i enter the mail function?

    WHY DOES MY IPAD 4 KEEP SHUTTING DOWN EVERYTIME I TRY TO GO TO MY MAIL?

    Close the Mail app in the Task Bar and re-launch.
    Double-click the Home button to reveal Task Bar. Hold Mail app down for a second or two until it wiggle; tap minus sign to close app.
    If it still doesn't work, try a reset.
    Hold the Sleep and Home button down until you see the Apple logo.

  • HT4356 why does the printer says missing ink cartridges when i put the ink in the right place?

    could anyone help?

    That's something you really should take up with the technical support resources of the manufacturer of the printer. There's no way anyone here could guess without details, and it's definitely not an iPad issue.
    Regards.

  • Why does the sound keep going out on my ipad? It seems to just go out in between sleep/wake sessions.

    Why does the sound keep going out on my ipad? It seems to just go out in between sleep/wake sessions.

    Hello stephiejoy,
    Thanks for using Apple Support Communities.
    The following support article will help you in resolving this issue your iPad is having with its audio.  Even though this article states it's for an iPhone, the same troubleshooting steps do apply to your iPad as well.
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/ts5180
    Take care,
    Alex H.

  • In the home page why does Firefox say I haven't upgraded when I have. This has been going on for over three weeks, I am now on 9 and still it says I have not upgraded.

    In the home page why does Firefox say I haven't upgraded when I have. So I upgrade again and still it says I haven't next time I log on. Today I upgraded to 9, it said congratulations on upgrading, I log off then log back on only to be told yet again I need to upgrade. What is going on?

    You may see that message below the Google search box on www.google.com/firefox which is the old Firefox default home page. It appears that page is no longer being maintained. You appear to have Firefox 8.0.1 installed which is the latest version.
    '''If you want the Google search page as your home page,''' change your home page to '''''about:home''''' (a new, updated version is now built-in to Firefox).
    *See --> http://support.mozilla.com/en-US/kb/How+to+set+the+home+page
    Also see --> https://support.mozilla.com/en-US/kb/Finding+your+Firefox+version<br />
    You can also see your version on the ''Help > Troubleshooting Information'' display
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *'''''Next Generation Java Plug-in for Mozilla browsers''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • I cannot install apps that are upgraded to ios4.. im using iphone 2g 3.1.3 this makes me sad.. why does apple need to updates many apps when we cannot update an iphone 2g anymore..

    i cannot install apps that are upgraded to ios4. im using iphone 2g 3.1.3 this makes me sad.. why does apple need to updates many apps when we cannot update an iphone 2g anymore..

    I am having the exact same problem with trying to sync my iPad with my computer. To make a long story short, I had to reinstall Windows for my computer and therefore had to reinstall itunes.
    I have done back ups in the past for my ipod touch and other ipods with no problems, but unfortunately I have never been able to back up my iPad. During a sync, the iPad would always disconnect from my computer and it would never finish. it would say the connection was lost, but nothing is wrong with the connection.
    So now I have over 100 apps and thousands of pictures that I am afraid will be deleted if I run the sync in itunes. I have tried to transfer purchases and it goes through the list of apps, but nothing is ever transferred.
    Any help would be appreciated. I am not interested in jailbreaking my iPad to solve this problem. There should be a fix for this and I want to upgrade to ios 4.3 as the original poster. Please help

  • I have Elements 11. Sometimes, if I edit a photo in Elements Editor, the date gets changed to the current date. Why does that happen? It doesn't happen all the time, so I can't isolate the cause. Any ideas?

    I have Elements 11. Sometimes, if I edit a photo in Elements Editor, the date gets changed to the current date. Why does that happen? It doesn't happen all the time, so I can't isolate the cause. Any ideas?

    I have Elements 11. Sometimes, if I edit a photo in Elements Editor, the date gets changed to the current date. Why does that happen? It doesn't happen all the time, so I can't isolate the cause. Any ideas?

  • When i scan my ipod from the application named find my ipod touch 4 it simply shows location unavailable while that of my cousin's ipod touch exactly shows the same location..... Why does that happen???

    When i scan my ipod from the application named find my ipod touch 4 it simply shows location unavailable while that of my cousin's ipod touch exactly shows the same location..... Why does that happen???

    When you go to the Google Maps app on the iPod does it correctly find your location? The iPod's locations service uses the location of the a nearby wifi router to locate te iPod.  However, not all routers are in Apple's database and as of yet nobody here knows of a way to add routers to the database.

  • Why does the iPad make the same noise when it connects to a charger that doesn't charge it as one that will charge it???

    Why does the iPad make the same noise when it connects to a charger that doesn't charge it as one that will charge it???
    I would expect that it would make an unusual noise if plugged into a generic USB charger that does not have enough oomph to charge a pad to alert you - otherwise, you might think the noise is reassuring that you are actually charging it.

    I guess my question was actually more of a comment on the (lack of) design!  It is unusual that something like this would still be in an Apple product.  There are wall chargers that have a USB port on them that do not have the required oomph to charge the iPad.  I have one that has two USB ports, one for my iPhone  (it won't charge an iPad), and one for an iPad with greater amperage rating.  I accidentally used the wrong ones for a while yesterday, but noticed before being "surprised" the next morning by an uncharged iPad.  The iPad is smart enough to say "Not charging" by the battery icon when it is plugges in to one of these, so it "knows" - seems like it would be fairly simply to have the iPad make a different or additional noise  wehn it puts up the "Not charging" text icon.  Failsafe user experience?

Maybe you are looking for

  • Can you help? Problem converting RWL to RAW in LR 5.6

    On a Mac OS X 10.9.5 and shooting RAW,  Leica with the RWL format.  Lighroom 5.6 didn't recognize the RWL so I downloaded the DNG Converter 8.7.1.  Now when I open LR I can see the DNG converter on the left column under my LEICA but the images are st

  • BAPI or FM to create an entry in MDVM/ in MRP file

    Hi All, There is a requirement to create an entry in table MDVM/Entry in MRP file table . Please let me know if there is any standard BAPI/FM to do the same. Thanks, Suhda

  • Is there any way to hook into the TextModel from ICompositionStyle?

    When creating a new custom attribute in IAttrReport there is the ability to hook into the ICompositionStyle interface. But I don't see any way from there to see which TextIndex it is composing. Does anyone know if it's possible?

  • Error in loading bean on startup using jsf

    Hiii.... can anybody help to solve this problem.I want to call a class after the jsf is loaded in startup.Currently i have loaded in startup using<bean></bean> tag but when i am accessing some service classes from loaded bean i am getting error......

  • How to post test data

    Hi All I have a set of 492 records is there any way other than INSERT to post the data on this forum? Thanks