본문 바로가기

I'm FanJae.

검색하기
I'm FanJae.
프로필사진 FanJae

  • Language
    • C++
      • Basic
      • Basic Practice
      • Intermediate
      • Concurrent
      • Design Pattern
  • CS
    • Data Structure
    • System Programming
    • Network
    • Database
    • DevOps
  • Game Development
    • Game Tech
    • Unity
      • Unity 초격차캠프
  • Projects
    • Two Faced Poker
    • Multi Room Chatting Server
    • EA FC Pro club Draft Bot
  • Problem Solving
    • BOJ
    • Programmers
    • Codeup
  • Daily Life
    • 독서
    • 생각
    • 정보
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/05   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Tags
  • PS
  • multi-thread
  • BOJ
  • C++
  • Data Structure
  • 독서
  • c#
  • System Programming
  • Online Judge
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록C++/Concurrent (1)

I'm FanJae.

[C++ Concurrent] std::this_thread, std::chrono

1. std::this_thread namespace- 스레드 관련 4개의 함수를 제공하는 namespace- 헤더std::this_thread::get_id()현재 스레드의 ID 반환std::this_thread::sleep_for()주어진 시간 만큼 현재 스레드 재우기std::this_thread::sleep_until()주어진 시간 까지 현재 스레드 재우기std::this_thread::yield()다른 스레드를 실행할 수 있도록 힌트 제공 1-1. std::this_thread::get_id()- 실행중인 현재 스레드의 ID를 반환한다.std::thread_id  get_id() noexcept;#include #include int main(){ std::cout h; st..

C++/Concurrent 2024. 9. 24. 22:38
Prev 1 Next

Blog is powered by AXZ / Designed by Tistory

티스토리툴바