TAILIEUCHUNG - Lecter Java: Program design - Chapter 12: Threads

In this chapter, we examine several Java mechanisms for creating, scheduling, managing, and running threads. After completing this unit, you should be able to: Develop programs with multiple, concurrent flows of control using threads; create threads that run at a time relative to the current time; create threads that run repeatedly;. | Threads Story so far Our programs have consisted of single flows of control Flow of control started in the first statement of method main() and worked its way statement by statement to the last statement of method main() Flow of control could be passed temporarily to other methods through invocations, but the control returned to main() after their completion Programs with single flows of control are known as sequential processes Processes The ability to run more than one process at the same time is an important characteristic of modern operating systems A user desktop may be running a browser, programming IDE, music player, and document preparation system Java supports the creation of programs with concurrent flows of control – threads Threads run within a program and make use of its resources in their execution Lightweight processes Processes Multithread processing Timer and TimerTask Among others, Java classes and support the creation and .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.