Ok, what happens if the point moves again before the sort is complete?
Do you complete that one, or terminate and start over? If you terminate
and start over, what happens if the sort never gets out to some points?

I'm not trying to be a troublemaker, just wondering what the constraints
of the problem are.

Bob McConnell
N2SPP

At 05:12 PM 2/24/99 +0100, Robert Kosara wrote:
>
>>        Any sugestions are welcome, and are greatly appreciated.
>
>  Well, my suggestion would be to have the array-sorting class listen
>for changes of the point, and only start the thread that does the
>sorting when that point moves (or a new element is inserted into the
>array). This way, you will not have any multi-threading problems,
>provided
>the point doesn't move too often. Additionally, cpu usage will go down.
>  Multi-threading is still a good idea, since the point-moving-function
>won't be blocked until the sorting has finished.
>


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to