Multithread in ruby-dbus
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- ruby
- Lĩnh vực
- backend, distributed-systems
Hướng nghiên cứu
Start by reading the update_buffer function and its IO.select usage, which the issue identifies as the source of the multithreading problem. Trace how requests and responses are associated with threads, then determine whether the proposed dispatch design is viable; done would require an agreed implementation direction, not just a patch.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi,
We quite need for our project to use ruby-dbus multhreaded. This feature is not supported as reported in 20 - 21 -22. We are thinking about an implementation and we want to have an enlightened opinion before coding it.
The problem seems to be due to update_buffer function and IO.select. Update_buffer function doesn’t know from which does come the previous request and the first thread that take IO.select income takes the request. A way to solve it may be to dedicate a thread that wait IO.select and return the buffer to the according thread:
if message-type is METHOD_CALL or SIGNAL, return to main thread.
if MESSAGE_RETURN, return to concerned thread. To do so, we need when sending a message to log in a hash (for example) the thread it cames from.
The thread will wait a Thread.stop and will be restarted from the dedicated one with a Thread.run
Do you agree with this implementation, do you see limitations from that ?
- Ngôn ngữ chính
- Ruby
- Star
- 174
- Fork
- 51
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của mvidner/ruby-dbus
-
Specify rexml versioningĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Rexml or Nokogiri?Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
NetworkManager.Settings.Connection cannot round-trip, calling Update with what GetSettings returnedĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Tất cả issue của mvidner/ruby-dbus
Issue tương tự
-
clouflaure de fernandoĐang mởenhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
cloudflare/mcp#271 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
zerocracy/swarm-template#302 ·
-
[KLayout][DRC] Gat.b1 only checks gate regions, misses facing 3.3 V poly end caps (Figure 5.6)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
IHP-GmbH/IHP-Open-PDK#1266 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Source Support
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
we-promise/sure#4056 ·
Maintainer thường phản hồi trong vòng 1 ngày