Marco Alvarado wrote:
Sorry for asking, what is "FPC's tmt1" ?

-Marco

2008/2/4, Mark Morgan Lloyd <[EMAIL PROTECTED]>:
I wonder whether it would be possible to patch affinity support into the
underlying TThread object? OTOH I'm currently looking at FPC's tmt1 running
under Linux on a 14-processor system and I can see it being spread fairly
evenly, so this is getting pretty specialist.

Micha Nelissen wrote:
Marco Alvarado wrote:
I'm using SetThreadAffinityMask() on Windows to set the processor for
a given TThread object. What can I use on Linux?
On linux you could use sched_setaffinity, but I don't think fpc has
wrapped that yet. Linux man page says it's linux specific.

tmt1 is part of the test suite when FPC (Free Pascal, the compiler that underlies Lazarus) is built. Specifically, it tests threading and was broken until comparatively recently on SPARC and possibly some other non-x86 platforms. I'd fired a big Sun up to specifically to check something related to that program, so it was obviously no effort to look at the CPU usage after noticing your query.

Apologies to everybody for the earlier top-posting. I alternate between environments where the different conventions are appropriate.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

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

Reply via email to