본문 바로가기

하루의 대학원 도전기

검색하기
하루의 대학원 도전기
프로필사진 내가하루다

  • 분류 전체보기 (58)
    • 프로그래밍 (16)
      • C (3)
      • 리눅스 (3)
      • Java (1)
      • Vim (7)
      • CUDA (2)
    • 운영체제 (31)
      • 메모리 (1)
    • 컴퓨터 구조 (2)
    • 컴퓨터 시스템 (1)
    • 컴파일러 (1)
    • 논문 리뷰 (2)
Guestbook
250x250
Notice
Recent Posts
Recent Comments
Link
  • ostep
«   2025/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
  • CSAPP
  • unix
  • 소비자 생산자
  • Multithreading
  • gpgpu sim
  • vi
  • .cu
  • Unified Memory
  • CUDA
  • vi 여러 창
  • nvidia
  • Producer consumer
  • Process
  • C
  • Virtual Address
  • GPU
  • ubuntu
  • cdua
  • peer-to-peer access
  • thread
  • parallel programming
  • ostep
  • 운영체제
  • gpgpu-sim
  • GPGPU
  • OS
  • multiprocessor
  • Linux
  • tabedit
  • vim
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록소비자 생산자 (1)

하루의 대학원 도전기

[JAVA] BlockingQueue를 이용한 Producer-Consumer 예제

출처 ㅣ: https://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/BlockingQueue.html BlockingQueue (Java 2 Platform SE 5.0) boolean offer(E o, long timeout, TimeUnit unit) Inserts the specified element into this queue, waiting if necessary up to the specified wait time for space to become available. docs.oracle.com class Producer implements Runnable { private final BlockingQueue queue; Pr..

프로그래밍/Java 2021. 12. 8. 15:20
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바