Giter Club home page Giter Club logo

non-blocked-runtime's Introduction

Non-Blocked I/O Runtime

A thread executing an I/O task will be take out from a scheduler of operating system. It means your program will be stuck until the I/O task has finished.

In a non-blocked I/O runtime, you are required to split your program into an I/O part and a callback that accepts the return from the I/O part. The number of thread will be increasing for different aspect splitted into two part CPU tasks and I/O tasks. For the I/O tasks, there are different thread pools for different devices. For example, a disk I/O should not block a socket I/O. The size of thread pool is different as well. To increase the number of threads for disk I/O is useless due to a limitation of Physics. But the socket I/O should be increased to reduce the rate of response.

Thread Pool

A thread pool manages the number of thread that require a lambda function from a thread safe queue.

IO Runtime

An IO runtime requires a thread pool call CPU runtime for CPU tasks and owns the number of thread pool for different IO types that are usually wait for I/O until the I/O has finished then packaging the result of I/O to a lambda function put to CPU runtim.

non-blocked-runtime's People

Contributors

neojay0705 avatar

Watchers

James Cloos avatar  avatar

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.