# Critical Section Enter

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/actions/group-code-flow/critical-section-enter
>
> Enters a critical section so no other thread runs the same code at the same time; use with Critical Section Leave, with an Id and timeout.

**Critical Section Enter**

A critical section is a part of your application that you don’t want to be executed simultaneously by other threads. When you call “Critical Section Enter” action the call only returns if there is no other Thread inside the same critical section. After the call returns, no other thread can enter the same critical section until a call to “Critical Section Leave” action is made by the current thread.

This action defines the beginning of a critical section.

Action available for the following operating systems:

![OS Supported: Android, iOS, Win, Win32](https://doc.sysdevmobile.com/kalipso/assets/images/01_Supported_OS-5c02a51fd5080a410a07ee3ef72b6872.png)

## Parameters

* **Critical Section Id** _\<numeric> -_ Defines the handler for critical section. There are 10 pre-defined handlers for critical sections.
* **Timeout** _\<numeric> -_ Defines time (in miliseconds) that the current thread is inside the critical section.

:::info
This action should be used in conjuction to [Critical Section Leave](https://doc.sysdevmobile.com/kalipso/6.1/documentation/actions/group-code-flow/critical-section-leave.md) action.
:::
