[lazarus] Question: Multiprocessor Systems

2007-03-02 Thread tanila
Hello all, is there an easy way to find out how many processors are in the system an Lazarus-Application is running ? I would like to make experiences with multithreadded application and how to get benefits with more than one cpu. Another question: Are this magic doual/quad-core cups real

Re: [lazarus] Question: Multiprocessor Systems

2007-03-02 Thread Graeme Geldenhuys
On 3/2/07, tanila [EMAIL PROTECTED] wrote: I would like to make experiences with multithreadded application and how to get benefits with more than one cpu. All you should need to do is create multiple threads in your system and the OS and CPU(s) will handle the rest. No need to do something

Re: [lazarus] Question: Multiprocessor Systems

2007-03-02 Thread tanila
Great thanks. Sorry for this many tipos... I didn´t sleep enough this night, I think. tanila Am Freitag, den 02.03.2007, 11:20 +0200 schrieb Graeme Geldenhuys: On 3/2/07, tanila [EMAIL PROTECTED] wrote: I would like to make experiences with multithreadded application and how to get

Re: [lazarus] Question: Multiprocessor Systems

2007-03-02 Thread Siegfried Göricke
The easiest way under Linux to get some information about the processors is to read the file /proc/cpuinfo. For each also virtual processor you find a entry. Here the output of my system(Dual xenon4 with hyperthreading). processor : 0 vendor_id : GenuineIntel cpu family : 15

Re: [lazarus] Question: Multiprocessor Systems

2007-03-02 Thread Albert Zeyer
I don't know if there is any possibility to define the CPU, on which a special thread should run on. Is there any? Because usually, this is something your OS should handle because it knows best about all the other parallel processes. And it's perhaps not always the best solution for your

Re: [lazarus] Question: Multiprocessor Systems

2007-03-02 Thread Siegfried Göricke
Am Freitag, 2. März 2007 14:19 schrieb Albert Zeyer: I don't know if there is any possibility to define the CPU, on which a special thread should run on. Is there any? This is little bit more difficult. on windows you can set the cpu affinity