(I failed to notice replies earlier due to unexpected mail filtering - oops.)
-----Oorspronkelijk bericht----- Van: pike-devel-bounces@lists.lysator.liu.se [mailto:pike-devel-bounces@lists.lysator.liu.se] Namens Mirar @ Pike developers forum Verzonden: Monday, March 30, 2009 9:50 AM Aan: pike-devel@lists.lysator.liu.se Onderwerp: Re: (semi-)multicore support?
This uses two threads, two cores if your OS runs threads on different cores:
Pike v7.8 release 205 running Hilfe v3.5 (Incremental Pike Frontend) | > void test() { for (;;) { Image.Image i=Image.Image(1000,1000); | string s=Image.JPEG.encode(i); } }
| > Thread.Thread(test); | (1) Result: Thread.Thread(1079527760) | > Thread.Thread(test); | (2) Result: Thread.Thread(1080490320)
It is limited to two OS threads (one for Pike, one for libraries, or maybe one for each library), or does it have the possibility of one OS thread per library call (theoratically resulting in X OS threads, which might or might not be faster here if the system has more than two cores)?
Regards,
Arjan
__________________________________________________________ Deze e-mail en de inhoud is vertrouwelijk en uitsluitend bestemd voor de geadresseerde(n). Indien u niet de geadresseerde bent van deze e-mail verzoeken wij u dit direct door te geven aan de verzender door middel van een reply e-mail en de ontvangen e-mail uit uw systemen te verwijderen. Als u geen geadresseerde bent, is het niet toegestaan om kennis te nemen van de inhoud, deze te kopieren, te verspreiden, bekend te maken aan derden noch anderszins te gebruiken.
The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Please notify us immediately if you have received it in error by reply e-mail and then delete this message from your system. __________________________________________________________