2014년 9월 25일 목요일

이벤트 루프와 비동기 I/O

이벤트 루프
http://en.wikipedia.org/wiki/Event_loop

Usage[edit]

Due to the predominance of graphical user interfaces, most modern applications feature a main loop. Theget_next_message() routine is typically provided by the operating system, and blocks until a message is available. Thus, the loop is only entered when there is something to process.
function main
    initialize()
    while message != quit
        message := get_next_message()
        process_message(message)
    end while
end function


비동기I/O
http://en.wikipedia.org/wiki/Asynchronous_I/O

댓글 없음: