Thread Priority

Giganews Newsgroups
Subject: Thread Priority
Posted by:  Ross Levis (ro…@stationplaylist-dot.com)
Date: Wed, 14 May 2008

I'm using Indy 10 downloaded late February.

I have a thread which uploads a file every few minutes.  I recently changed
the thread priority of my thread to tpIdle as it's not important for the
upload to occur immediately.  Since this change I've had reports from
several users of my software that the upload procedure now occasionally
hangs indefinately.  They need to terminate and restart my app to get it
going again.  This can be after a few days or a few hours.

I've always had 1 or 2 users complain of this problem even with the a
tpNormal thread as it was before.  But it was much worse at tpIdle.  I've
now changed the priority to tpHigher to reduce this problem.

What would cause this?  Is this a bug in Indy?

I know Indy itself uses threads internally.  I was wondering if it is worth
(or even possible) to increase the priority of these threads?

Thanks,
Ross.

Replies