Re: Multithread question
Lance Dillon <[email protected]> Fri, 17 Nov 2017 18:56:21 +0000 (UTC)
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <[email protected]> |
Until actual objects are able to be sent (if at all possible), you might be able to use encode_value()/decode_value() to send other types. Those functions will convert to a string representation and back.
On Friday, November 17, 2017, 1:25:04 PM EST, <[email protected]> wrote:
Dear all,
We are trying to improve our systems in daily basis. We found out that when are using thread_create, which works to run simultaneously to the rest of the program, it seems to work only in one CPU while the rest of the CPU are idle.
Is there any way to use all the processor power? Do you have any recommendation to use all processor cores?
We've been trying to use the method Process.create_process()->create() but we are facing that when we use process we have to use bidirectional pipes to send information between those processes and we didn't find any way to send anything but strings. There is any way to send objects between processes?
http://pike.lysator.liu.se/generated/manual/modref/ex/predef_3A_3A/Process/create_process/create.html
Thanks in advance for your support.
--
Daniel Parada
Técnico de I+D+i | R&D Technician
[email protected]
(+34) 651 420 294
Parc Científic i Tecnològic Agroalimentari de Lleida
Edifici H1 2a planta B | 25003 Lleida (Spain)
Tel. (+34) 973 282 300
Fax (+34) 973 282 195
www.lleida.net
Política de privacidad