× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



James,

I've also had extensive experience with threads and multi-threading. Just
not on the AS/400, but the concepts are all the same.

Some things to remember:

1) It makes debuging a lot harder!

2) Never allow 2 threads to modify the same chunk of data at the same time.
*ALWAYS* surround the updates with a critical section.

3) Critical Sections should be very small. Lock it, update it, release it.
You can have a "deadly embrace" otherwise. And these are hard to debug.

4) Dont over do it. To many threads gets hard to handle, complicated and
doesnt perform well.

5) Starting a thread nicely is easy. Terminating it is much harder to do!
But terminating nicely is important.

6) Do it "Right" right from the git go. Do not slap the code together
expecting to come back later and clean things up. Actually, this is a good
one for ANY programing! But it applies 10x as much in
a multi-threaded environment.

These issues are not hard to deal with. But they must be dealt with or your
app will become very unstable.

Bob Crothers
www.BJsBariatrics.Com
------------------------------------------
“The greater danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it.”
- Michelangelo


On Wed, Mar 3, 2010 at 12:32 PM, James H. H. Lampert <
jamesl@xxxxxxxxxxxxxxxxx> wrote:

Bruce Vining wrote:
Yes, I'm familiar with threads and multi-threaded jobs :)

Any recommendations on where to start relieving my own ignorance (and
please, no sarcastic links to "lmgtfy.com")?

How difficult are they to deal with? What languages support threads? At
what OS level do they become possible/practical?

--
JHHL
--
This is the C programming iSeries / AS400 (C400-L) mailing list
To post a message email: C400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.