Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion A book for learning threads?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ian Collins  
View profile  
 More options Nov 6 2012, 4:37 pm
Newsgroups: comp.programming.threads
From: Ian Collins <ian-n...@hotmail.com>
Date: Wed, 07 Nov 2012 10:37:48 +1300
Local: Tues, Nov 6 2012 4:37 pm
Subject: Re: A book for learning threads?
On 11/03/12 19:46, Robert Miles wrote:

> On Friday, November 2, 2012 8:52:55 PM UTC-5, Ian Collins wrote:
>> On 10/30/12 19:49, Robert Miles wrote:

>>> On Monday, October 29, 2012 11:35:14 AM UTC-5, Lucas Levrel wrote:

>>>> If it already uses Pthreads and compiles on these platforms, where's the
>>>> worry? Just stick with the Pthread implementation of the threads concept.

>> Please trim your lines and tidy up the mess google makes of your replies!

> Trying.

>>> There's no desire to have it run only on platforms that can run for a
>>> month or more without any interruptions.  Adding checkpoints so that it
>>> can resume with less computer time lost due to any interruptions REQUIRES
>>> understanding threads so that I can suspend all threads except the main
>>> thread when writing checkpoints or restoring from them.  I don't yet know
>>> if it also requires telling all the other threads to place information
>>> specific to those threads where the main thread can find it and include it
>>> in the checkpoint..

>> Applications like BOINC typically dish out units of work to client
>> machines and these in turn pass them on to worker threads.  In this
>> case, it makes sense for the unit of work to be scaled to be a) useful
>> and b) small enough so not too much is wasted if the machine dies during
>> processing.

>> Saving state part way through a work unit probably isn't worth while.

>> Make your "checkpoints" the completion of a work unit.

> There's no good division of the process to allow the many of the workunits to
> be less than a month long, and sometimes longer.  If there was, checkpoints
> would already be available.

I still see this as a problem for the work unit rather than a threading
one.  Surly it would be easier for the work unit to know when would be a
good time to dump its state rather than rely on an application wide
mechanism?  If the computations use multiple threads, each thread could
save its own state.

--
Ian Collins


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.