[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ProgSoc] Threads



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

|>A better model is to have a pool of work threads and whenever
|>one is idle have it do things.
|
I don't quite understand this model, but one I've used which is kinda
nice is to have a `pipeline' of threads; say one handling data input,
which then pumps this data to the next one which does some computation,
which then pumps it into the next one and so on. at the start of the
program there is a little lag until all the `pipe' is full, but once its
full u have all the threads working concurrently.

|>Do you have the code to this program? Can you see what its thread
model is?
|
|Nope. Proprietary system unfortunately. I've gathered from experience
|using the system that it isnt written all that well.

so do u r trying to rewrite the program?

Back to ur original question, what sort of a program is it? this data
may be useful in working out if 50 threads is too much for it.

chow

vik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9CuGEezJP+OMWuysRApKfAJ4t3gRXj91SsWeBKTjkVcRbOibpDgCgnb16
N+mZwJpDJxdn2QptIaOk3bU=
=UhJK
-----END PGP SIGNATURE-----



-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.