[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ProgSoc] Threads
-----BEGIN PGP SIGNED MESSAGE-----
|>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
|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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to firstname.lastname@example.org.
If you are having trouble, ask email@example.com for help.