chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Parallel procedures in CHICKEN


From: Arthur Maciel
Subject: Re: [Chicken-users] Parallel procedures in CHICKEN
Date: Fri, 30 Dec 2016 10:44:46 -0200

Thanks for pointing it, Dan! Do you know if it is supported by CHICKEN on Windows too? 

Cheers, 
Arthur 

Em 30 de dez de 2016 03:43, "Dan Leslie" <address@hidden> escreveu:

You could build something with the posix-shm egg, and the posix unit. If you need locks, there’s the posix-semaphore egg.

 

-Dan

 

From: Chicken-users [mailto:chicken-users-bounces+dan=address@hidden] On Behalf Of Arthur Maciel
Sent: December 28, 2016 7:47 AM
To: Kooda <address@hidden>
Cc: chicken-users <address@hidden>
Subject: Re: [Chicken-users] Parallel procedures in CHICKEN

 

Hi Kooda!

 

Em 24 de dez de 2016 07:00, "Kooda" <address@hidden> escreveu:

On Sat, 24 Dec 2016 02:11:37 -0200
Arthur Maciel <address@hidden> wrote:
> Is there a way to implement map, for-each and other procedures in a
> parallel way so
>
> (use srfi-1)
> (map (lambda (x) (+ x 1)) (iota 1000000)
>
> would automatically split the list into smaller lists according to the
> number of CPU cores and then gather the results back?

I guess you could spawn a process pool and send these processes a thunk
that calculates their part and send back the result. You could use s11n
egg for that, I believe.

I’m not sure it would be faster than the regular functions though.

 

Do you recommend any specific way to create the pool and especially to  communicate between the processes? 

 

About the speed, I'll  test and report the results.

 

Thanks! 

Arthur 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]