Interview Questions  

Go Back   Interview Questions > Interview Questions & Answers > Information Technology > Operating Systems > RTOS

RTOS RTOS Interview Questions, Learn by sharing RTOS Interview Questions asked in various Companies, Get Career advices, Interview Procedures from RTOS experts, Post asked RTOS Interview Questions and Answers.

   

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-17-2008, 11:51 AM
Senior Member
 
Join Date: Feb 2008
Posts: 1,046
Default What are the rules you follow when you are writing critical




What are the rules you follow when you are writing critical section of code?
Reply With Quote
  #2 (permalink)  
Old 11-26-2008, 07:30 AM
Junior Member
 
Join Date: Nov 2008
Posts: 5
Default

While writing critical section code you need to first-
Disable all interrupts in case of small embedded systems by setting global interrupt bit to 0 or first start call sritical section related API such as initcritcalsection()
then write your critical code and before exit you again need to enable interrupts or call API such as endcriticalsection()
Reply With Quote
Reply

Tags
interview questions, operating systems, rtos questions

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On