On 02/09/2015 12:34 PM, xtreak wrote:
> I want the stringConverter to send a message to square which in
> turn messages the main function with string "hello".
Your code did almost that but there was a bug (which I've pointed out).
> So are you saying that message is not delivered to square from
On Monday, 9 February 2015 at 20:11:09 UTC, Ali Çehreli wrote:
On 02/09/2015 11:46 AM, Ali Çehreli wrote:
> threads normally start one [or] more worker threads and
> send tasks to those threads
Accordingly, the following program uses just three threads:
import std.stdio;
import std.concurrency
On 02/09/2015 11:46 AM, Ali Çehreli wrote:
> threads normally start one [or] more worker threads and
> send tasks to those threads
Accordingly, the following program uses just three threads:
import std.stdio;
import std.concurrency;
import std.conv;
import core.thread;
struct Terminate
{}
voi
On 02/09/2015 08:00 AM, xtreak wrote:
I am using "programming in D" to learn about D language. I wrote a
simple program that spawns a worker and sends it a number to receive its
square as a string. The worker 1 gets the number squares it and sends to
worker 2 (a different function) to get casted