Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #38618
| From | Martin Gregorie <martin@mydomain.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: How to send files without blocking execution finish |
| Date | 2018-09-27 11:40 +0000 |
| Organization | albasani.net |
| Message-ID | <poifk5$ph1$1@news.albasani.net> (permalink) |
| References | <cd48f7c3-babb-4b65-bcd3-cce11b2ae5b2@googlegroups.com> <poie6t$9rk$1@dont-email.me> |
On Thu, 27 Sep 2018 07:16:43 -0400, Eric Sosman wrote: > - "Holding up valuable execution time" seems a peculiar thing to > worry about. Transmission to other machines will almost surely be an > I/O-bound task, so even if it runs for quite a while it should chew up > very little CPU resource. Other programs should still be able to get > plenty of CPU even as the transmitter continues to run. > Agreed. You could also add the JSON files to a queue serviced by one or more worker threads that send each request to the relevant server and deal with its response. If the JSON files are created at intervals rather than all of them in a burst this might even reduce execution time. -- Martin | martin at Gregorie | gregorie dot org
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to send files without blocking execution finish mike <mikaelpetterson@hotmail.com> - 2018-09-27 02:00 -0700
Re: How to send files without blocking execution finish Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-09-27 07:16 -0400
Re: How to send files without blocking execution finish Martin Gregorie <martin@mydomain.invalid> - 2018-09-27 11:40 +0000
Re: How to send files without blocking execution finish Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2018-09-27 14:01 +0200
csiph-web