On Tue, 9 Jan 2001, Nadav Har'El wrote:

> Alternatively, you may decide that the entire freecel-solving capability
> will depend on threads, and where threads is not available, the solving of
> the game will not be available (this is not so terrible, in my opinion,
> especially if writing the non-threaded version is very difficult).
>

That's not the problem. I plan to thread-enable the library with both
"soft" threads" and system threads, but so far it is completely
synchronous. My point was that assuming you don't want the user to wait
for the solver to finish, you should put it on a separate working thread
so the main thread would be available to handle GUI events.

Another option in the case of Freecell Solver is to use a separate
process, and then parse its output. Such thing is more portable, at least
in the UNIX arena, but I don't know why the KDE developer did not
implement it that way.

> Of course, if you find that you don't need threads in your program other
> than for a very small thing, you should try to avoid using them - even if
> you'll have threads on any system you use. This is just like you should avoid
> having a huge backend-processing program require X-Windows just to pop up
> a "success" message at the end. Using another library adds complexity,
> and dependence on that library, that should be avoided if you don't really
> need that library.
> 

Like I said, Freecell Solver does not use threads nor will ever depend on
them. However, the best way to integrate it into an existing Freecell
implementation is to put it on a separate thread.

Regards,

        Shlomi Fish

> 
> -- 
> Nadav Har'El                        |       Tuesday, Jan 9 2001, 15 Tevet 5761
> [EMAIL PROTECTED]             |-----------------------------------------
> Phone: +972-53-245868, ICQ 13349191 |I had a lovely evening. Unfortunately,
> http://nadav.harel.org.il           |this wasn't it. - Groucho Marx
> 



----------------------------------------------------------------------
Shlomi Fish        [EMAIL PROTECTED] 
Home Page:         http://t2.technion.ac.il/~shlomif/
Home E-mail:       [EMAIL PROTECTED]

The prefix "God Said" has the extraordinary logical property of 
converting any statement that follows it into a true one.


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to