Hi Aditya,

"await(C);" has been replaced by "when(C) {};".  There are some examples 
in section 14 of the language specification. 
http://dist.codehaus.org/x10/documentation/languagespec/x10-latest.pdf

As for sleep() (and "wakeup()" - which I'm not sure actually exists): 
what would you like to do with these?  Are you trying to simulate 
blocking behaviour for the purposes of testing the X10 runtime 
implementation?  I would not usually expect X10 application code to 
explicitly manage threads in this way.

Cheers,

Josh

On 10/02/11 16:29, Aditya Sriram M wrote:
> Gentle Reminder.
>
>
>
> Hi X10,
>
>
>
> I am just trying out new with X10 DT, and have started working with examples
> given in the site.
>
>
>
> However, I am trying to find some multi threaded X10 programs depicting the
> usage of sleep, await and wakeup().
>
> Can you point me to one which is simple to understand, compile and test on
> X10 2.1.1?
>
>
>
> Thanks,
>
> Aditya
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>    


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to