TAILIEUCHUNG - HandBooks Professional Java-C-Scrip-SQL part 263

Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 263', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Instance Methods .lock Locks the Mutex object m. .locked Returns true if m is locked. .synchronize . Locks m and runs the block then releases the lock when the block exits. .try lock Attempts to lock m. Returns false if lock fails. .unlock Releases lock on m. Queue Message queue class This class provides the way to communicate data between threads. Required Library require thread Class Method Queue new Creates a queue object Instance Methods .empty Returns true if the queue is empty. .num waiting Returns the number of threads waiting on the queue. non_block false Retrieves data from the queue. If the queue is empty the calling thread is suspended until data is pushed onto the queue. If non_block is true the thread isn t suspended and an exception is raised. obj obj Pushes obj to the queue. .size .length Returns the length of the queue. SizedQueue Fixed-length queue class This class represents queues of specified size capacity. The push operation may be blocked if the capacity is full. Required Library require thread Inherited Class Queue Class Method SizedQueue new max Creates a fixed-length queue with a maximum size of max Instance Methods Returns the maximum size of the queue n Sets the maximum length of the queue ThreadsWait Thread termination watcher class This class watches termination of multiple threads. Required Library require thwait Class Methods ThreadsWait all_waits th . ThreadsWait all_waits th. . Waits until all specified threads are terminated. If a block is supplied for the method evaluates it for each thread termination. th.

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.