---
title: "Discussion on \"Semaphore và cách sử dụng trong lập trình đa luồng\" | Hashnode"
description: "Discussion on \"Semaphore và cách sử dụng trong lập trình đa luồng\". Semaphore là cơ chế đồng bộ dùng để giới hạn số luồng truy cập tài nguyên. Bài viết giải thích cách semaphore hoạt động, phân biệt binary và counting semaph"
url: "https://hashnode.com/posts/semaphore-va-cach-su-dung-trong-lap-trinh-da-luong/697466ffd4df342f82ffb92c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Semaphore và cách sử dụng trong lập trình đa luồng](https://u40hoccode.dev/semaphore-va-cach-su-dung-trong-lap-trinh-da-luong?utm_source=hashnode&utm_medium=feed)

Semaphore là cơ chế đồng bộ dùng để giới hạn số luồng truy cập tài nguyên. Bài viết giải thích cách semaphore hoạt động, phân biệt binary và counting semaph

Jan 24 · 5 min read · u40hoccode.dev  
Updated Feb 8  
Read the article

-   [#semaphore](https://hashnode.com/tag/semaphore)
-   [#computer-science](https://hashnode.com/tag/computer-science)
-   [#cpp](https://hashnode.com/tag/cpp)
-   [#multithreading](https://hashnode.com/tag/multithreading)
-   [#operating-system](https://hashnode.com/tag/operating-system)

## Written by

[Lê Bách Khoa](https://hashnode.com/@lebachkhoa)

@lebachkhoa · Japan - Kanagawa

  
[View profile](https://hashnode.com/@lebachkhoa)

U40 học Code!

Học để hiểu bản chất chứ không chỉ chạy được code.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
