Re: threads on Solaris 2.3: do they work?

Philip Homburg (philip@cs.vu.nl)
Mon, 28 Feb 94 17:19:15 MET

In your letter dated Mon, 28 Feb 1994 16:00:54 +0100, you wrote:
>What to do about it? Releasing the lock less often has the
>disadvantage that one thread can monopolize the CPU for a long time --
>not all Python instructions take the same processing time and while
>some instructions may execute in a microsecond others may take a
>millisecond or more. Also, checking for keyboard interrupts is done
>with the same frequency -- thus a program caught in an infinite loop
>might be hard to stop.
>
>Could a compromise be to reduce the checking frequency when threads
>are used?

What about setitimer on systems that support it? You can use a 10HZ clock
to do thread switches.

Philip Homburg