Re: Adding a timeout to commands by wrapping + thread - suggestions?



On Aug 31, 4:35 am, Lew <l...@xxxxxxxxxxxxx> wrote:
dduck wrote:
Comments?

Read /Java Concurrency in Practice/ by Brian Goetz.

I second that. One of the best books I've ever read on any subject in
Java. Well written, easy to read, and very accurate.

Among other things, it's chock-full of idioms for the type of thing you're
trying to do. It will also help you avoid some of the trouble you'll be in.
I'm certainly no expert; this book helps me to realize that.

--
Lew

Also, look into the interface Callable<E>, or Runnable, it does pretty
much what your Command interface does, but its standard. Callable and
Runnable also gives you the option of using Executors, which are
useful for concurrent tasks, and managing timeouts.

Good luck,
Daniel.

.



Relevant Pages

  • Re: Optimistic Concurrency - how? - net 2.0
    ... I don't know what books you've read but there are those that can supply ... problems has more to do with how you approach concurrency. ... don't recommend building applications whose data access schemes are designed ... Ok for this there is optimistic concurrency. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Wanted: book recomendations C#, SQL, with Timestamps
    ... I have printed out the articles you and Scott ... I will see if they have either one of the books you mention. ... I am currently using the old row / new row technique so I ... > Concurrency Using ADO.NET" ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Wanted: book recomendations C#, SQL, with Timestamps
    ... I understand that you need a reference book about ... Concurrency Using ADO.NET" ... There are many technical articles about ADO.NET concurrency on the web. ... some ADO.NET books have topic ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: New edition of Reppys Concurrent ML?
    ... If I'm interested in functional programming (ML-style) and ... are there any other books I should read? ... with the ease of writing correct code. ... which occcurs with all concurrency packages, AFAIK, is the difficulty ...
    (comp.lang.functional)