answersLogoWhite

0


Best Answer

A critical section is a piece of code that accesses a shared resource (either in the form of data structure or a device) that must not be concurrently accessed by more than one thread of execution (which will otherwise lock it from doing other things).

Note: Note that on Windows NT (not 9x/ME), the function TryEnterCriticalSection() can be used to attempt to enter the critical section.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is critical section in operating system?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the disadvantage of critical section in operating system?

- Higher priority threads may be asked to wait for an indefinite amount of time - Implementation of critical section is not an easy task (from programming perspective), since it has to consider all the possible collateral risks


What software is most critical for the hardware?

operating system


Why can't a process disable the interrupts to avoid context switch while in the critical section to avoid the race condition?

Because only the operating system has that authority.


What is the heart of the operating system that controls the most critical process?

The kernel.


When are most operating system critical files loaded and run?

At boot up.


What is the heart of operating system and control and control the moist critical processes?

kernal


What is usually the critical performance requirement in an interactive operating system?

Response Time


Windows 2000XP calls what files critical to a successful operating system load the?

system state data


What are four hardware components controlled by an Operating System?

Four of the most critical components controlled by an operating system are: CPU, RAM, Hard Drive and Motherboard.


What is Peterson's solution in operating system?

Peterson's solution:- (AKA Peterson's solution) is a concurrent programming algorithm for mutual exclusion that allows two processes to share a single-use resource without conflict, using only shared memory for communication. It was formulated by Gary L. Peterson in 1981.While Peterson's original formulation worked with only two processes, the algorithm can be generalized for more than two.Mutual exclusionP0 and P1 can never be in the critical section at the same time: If P0 is in its critical section, then either flag is false (meaning P1 has left its critical section) or turn is 0 (meaning P1 is just now trying to enter the critical section, but graciously waiting). In both cases, P1 cannot be in critical section when P0 is in critical section.


What is GRUB?

GRUB is the bootloader for Linux operating systems. The bootloader is the section of code on the hard disk drive that is called and executed at bootup. It will load the operating system components and programs and start the operating system.


How can I protecting a dedicated function in Visual C plus plus from interruption by the system - I have tried threads with critical sections and they are still interrupted?

Just because you protect threads with critical sections does not mean the threads cannot be interrupted by the system. What it does mean is that, if the threads are correctly protected with the same critical section, the threads cannot interrupt each other. If this is not true, then your code is defective. Make sure the thread blocks when the critical section cannot be entered, and that it properly releases the critical section when it is done.