Giter Club home page Giter Club logo

Comments (3)

huijeong-kim avatar huijeong-kim commented on June 14, 2024 1

우와 만연체 재미있습니다 ㅎㅎㅋㅋ
blocking queue 보다 non-blocking queue가 더 좋을 때는 언제일까요,,?

from yyu-nim.github.io.

yyu-nim avatar yyu-nim commented on June 14, 2024 1

개인적인 생각은, 두 queue를 1개씩 두고 직접 비교를 하면 큰 차이점이 없을 수도 있겠는데 (blocking queue 구현은 "non-blocking queue + conditional wait" 으로 되는 경우도 많을 것 같아서), queue가 여러개 있는 경우 (e.g., event queue, io queue, ...), non blocking queue 를 써서 single thread로도 효과적인/쉬운 multiplexing이 가능해지는 것을 꼽을 수 있지 않을지 생각합니다 ㅎ 특히 병렬성이 높아질수록 (혹은 시스템의 로드가 클수록) non blocking queue로 context switch overhead 등을 최소화하여 부수적으로 성능 이득을 얻을 수 있지 않을까 예상합니다 ㅎ

from yyu-nim.github.io.

huijeong-kim avatar huijeong-kim commented on June 14, 2024 1

아하 의견 주셔서 감사합니다!! single therad로도 효과적인/쉬운 multiplexing은 큰 장점일 것 같습니다 ㅎㅎ multithread에서는 큰 차이가 없을 수도 있겠군요 ㅎㅎ

from yyu-nim.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.