Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #22571

Re: Thread queue

From Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Thread queue
Date 2013-02-27 13:00 +0100
Organization A noiseless patient Spider
Message-ID <kgksef$ngk$1@dont-email.me> (permalink)
References <41750994-c932-4206-b1e6-b0f21dea16d5@googlegroups.com>

Show all headers | View raw


On 26/02/2013 16:51, bob smith allegedly wrote:
> Is there some kind of system in Java where you can put Thread objects on a queue and they get executed in sequence?
> 
> Thanks.

You're confusing things here. Threads are not things that get executed
(at least not as far as the JVM is concerned). Threads are the things
that *execute*. *Runnable*s or *Callable*s are the things that get executed.

Yes, you can certainly put Runnables or Callables in a queue and have
them be executed sequentially. As mentioned by someone else in this
thread, the java.util.concurrent package is the place you'll want to look.

-- 
DF.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Thread queue bob smith <bob@coolfone.comze.com> - 2013-02-26 07:51 -0800
  Re: Thread queue Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-02-26 11:00 -0500
  Re: Thread queue Arne Vajhøj <arne@vajhoej.dk> - 2013-02-26 19:08 -0500
  Re: Thread queue Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2013-02-27 13:00 +0100
  Re: Thread queue Roedy Green <see_website@mindprod.com.invalid> - 2013-02-28 11:22 -0800
    Re: Thread queue Arne Vajhøj <arne@vajhoej.dk> - 2013-02-28 16:52 -0500

csiph-web