# Synchronization primitives

This chapter describes synchronization primitives in the Linux kernel.

* [Introduction to spinlocks](/linux-insides/summary/syncprim/linux-sync-1.md) - the first part of this chapter describes implementation of spinlock mechanism in the Linux kernel.
* [Queued spinlocks](/linux-insides/summary/syncprim/linux-sync-2.md) - the second part describes another type of spinlocks - queued spinlocks.
* [Semaphores](/linux-insides/summary/syncprim/linux-sync-3.md) - this part describes implementation of `semaphore` synchronization primitive in the Linux kernel.
* [Mutual exclusion](/linux-insides/summary/syncprim/linux-sync-4.md) - this part describes - `mutex` in the Linux kernel.
* [Reader/Writer semaphores](/linux-insides/summary/syncprim/linux-sync-5.md) - this part describes special type of semaphores - `reader/writer` semaphores.
* [Sequential locks](/linux-insides/summary/syncprim/linux-sync-6.md) - this part describes sequential locks in the Linux kernel.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://0xax.gitbook.io/linux-insides/summary/syncprim.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
