Anh ơi, em có 2 câu hỏi:
- Vì sao event loop có thể xử lý concurency tốt hơn thread pool thông thường, khi nào thật sự cần event loop, nhược điểm event loop
- có phải các ứng dụng Java ngày xưa RMI dùng socket k ạ
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Bản thân 1 thread pool cũng là sự kết hợp giữa 1 danh sách các thread, 1 queue và 1 event loop rồi nên câu hỏi của em là chưa chính xác, em có thể tham khảo code thread pool đơn giản này nhé.
2. RMI là 1 api của java phục vụ cho việc gọi method từ xa (như restfull, websocket…) và thường được cài đặt với socket em ạ.