Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #34835
| From | Jan Burse <janburse@fastmail.fm> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: : Light Weight Channels Lib anybody |
| Date | 2016-07-09 18:17 +0200 |
| Organization | albasani.net |
| Message-ID | <nlr83h$ooc$1@news.albasani.net> (permalink) |
| References | <nlnsho$h2n$2@news.albasani.net> <nlr636$l5t$1@news.albasani.net> <nlr64q$l5t$2@news.albasani.net> |
But very annoyingly the Go rselect, which can be read as "run select" but I guess it could also be read as "randomized select", requires shuffling the cases, even for each invocation I guess. And shuffling requires access to a random generator, which might need some additional locking probably. So after all I have the impression that the Go rselect is not extremly simple. Also I am not sure about the application scenarios, those I have seen so far could be also solve with single queue or even single priority queue. Just force your M:1 producer consumers to write into the same queue. What could be an application scenario though, could be something along 1:M producer consumer arbitration. Still experimenting. Bye j4n bur53 schrieb: > j4n bur53 schrieb: >> A solution from scratch turned out pretty simple. Just >> introduce an underground layer of publish - subscribe. > > The select is just an or-condition on the subscribed > publishers. Now figure out what needs to be done.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
: Light Weight Channels Lib anybody Jan Burse <janburse@fastmail.fm> - 2016-07-08 11:42 +0200
Re: : Light Weight Channels Lib anybody Daniel Pitts <usenet@coloraura.com> - 2016-07-08 08:36 -0700
Re: : Light Weight Channels Lib anybody Jan Burse <janburse@fastmail.fm> - 2016-07-08 19:17 +0200
Re: : Light Weight Channels Lib anybody Daniel Pitts <usenet@coloraura.com> - 2016-07-08 10:25 -0700
Re: : Light Weight Channels Lib anybody Jan Burse <janburse@fastmail.fm> - 2016-07-08 19:27 +0200
Re: : Light Weight Channels Lib anybody Marcel Mueller <news.5.maazl@spamgourmet.org> - 2016-07-09 10:41 +0200
Re: : Light Weight Channels Lib anybody Martin Gregorie <martin@address-in-sig.invalid> - 2016-07-09 10:46 +0000
Re: : Light Weight Channels Lib anybody j4n bur53 <janburse@fastmail.fm> - 2016-07-09 17:43 +0200
Re: : Light Weight Channels Lib anybody j4n bur53 <janburse@fastmail.fm> - 2016-07-09 17:44 +0200
Re: : Light Weight Channels Lib anybody Jan Burse <janburse@fastmail.fm> - 2016-07-09 18:17 +0200
csiph-web