On Friday 10 March 2006 14:02, Michael Van Canneyt wrote:
> On Fri, 10 Mar 2006, Paul Michell wrote:
> > I have been looking at threads in FPC/Lazarus over the last few weeks and
> > I found on the web a conversion of the old Delphi threads demo that was
> > partially working. I have added the "{$ifndef win32}  CThreads, {$endif}"
> > code to enable thread linking on Linux. I have also got the Synchronize
> > calls to work by adding the '@' operator to the DoVisualSwap procedure
> > reference. I also had to remove the final refresh of the paint boxes as
> > this caused a seg fault on Windows. The new version of the code is now
> > here:
> >
> > http://www.proceduralminds.com/Files/LazThreads.tar.gz
> >
> > The threads now work fine on Windows and on Linux in the Lazarus IDE,
> > unfortunately the Linux standalone program executes the threads
> > sequentially, i.e. not using time slicing? I am testing in Laz 0.9.13Beta
> > 9-2-06. Anyone any ideas?
>
> How the threads are executed is not up to FPC: the PThreads
> implementation is used to do the actual thread handling.
>
> The FPC code does not decide anything about how the threads are
> executed.
>

Thanks for the reply. Why would the behaviour change from running from the IDE 
to executing from the command line?

> Michael.
>
> _________________________________________________________________
>      To unsubscribe: mail [EMAIL PROTECTED] with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to