[hashcash] Re: freeBSD 5.3 compile problems

  • From: Hubert Chan <hubert@xxxxxxxxx>
  • To: hashcash@xxxxxxxxxxxxx
  • Date: Tue, 11 Jan 2005 22:03:50 -0500

>>>>> "Adam" == Adam Back <adam@xxxxxxxxxxxxxxx> writes:


Adam> btw a simple way to get multi-cpu support would be to write a
Adam> simple shell script to spawn as many instances of hashcash as your
Adam> hyperthreads x cpus and wait for the first one to terminate then
Adam> kill the rest.  As there is no need for communication between the
Adam> instances this should basically be just as effective.  An exercise
Adam> for the reader...

I was just thinking about this yesterday.  I think this is a good way to
go.  I don't know if a shell script would be able to cut it, but it
should be simple to write a C program with some fork(2)s, wait(2)s and
kill(2)s.  I should be able to whip up something soon (say, next week).

BTW, this is also a good solution from the point of view of clusters
(and distributed computing) because threads don't work too well under
those environments.  Some (most?) clustering software can't even migrate
programs that use threads.

Hubert Chan <hubert@xxxxxxxxx> - http://www.uhoreg.ca/
PGP/GnuPG key: 1024D/124B61FA
Fingerprint: 96C5 012F 5F74 A5F7 1FF7  5291 AF29 C719 124B 61FA
Key available at wwwkeys.pgp.net.   Encrypted e-mail preferred.

Other related posts: