charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: Filippo Gioachin <gioachin AT uiuc.edu>
- To: Christian Perez <christian.perez AT inria.fr>
- Cc: charm AT cs.uiuc.edu
- Subject: Re: [charm] how to suspend/resume a chare ?
- Date: Mon, 24 May 2010 16:01:42 -0500
- List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
- List-id: CHARM parallel programming system <charm.cs.uiuc.edu>
Christian,
for your purposes, I would suggest looking at the manual on section 3.2.1 (Entry Method Attributes) regarding "threaded" and "sync" entry methods. A combination of the two (m1 threaded and m2 sync) should solve your problem.
Additionally, callbacks are very useful to resume threads as well; 3.15.2 shows how CkCallbackResumeThread can be used to resume m1().
Please remember that other entry methods may run while m1 is suspended, including other m1 methods.
Filippo
On Thu, May 20, 2010 at 03:58, Christian Perez <christian.perez AT inria.fr> wrote:
Hello,
I'd like to know how to block a thread. Here is a simple version of what
I'd like to do:
Chare A:
m1() {
do some computation
invoke method m2 on chare B
wait for the completion of method m2
do something else
}
I've tried to use some callback mechanism but the problem is that
I can not split m1 in two :(
So, is there a wait to suspend the execution (and also how to resume it) ?
Thank you!
Christian Perez
_______________________________________________
charm mailing list
charm AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/charm
--
Filippo Gioachin
PhD Candidate
Department of Computer Science
University of Illinois at Urbana-Champaign
Ph: +1-217-333-4764
- [charm] how to suspend/resume a chare ?, Christian Perez, 05/20/2010
- Re: [charm] how to suspend/resume a chare ?, Isaac Dooley, 05/24/2010
- Re: [charm] how to suspend/resume a chare ?, Isaac Dooley, 05/24/2010
- Re: [charm] how to suspend/resume a chare ?, Filippo Gioachin, 05/24/2010
- Re: [charm] how to suspend/resume a chare ?, Christian Perez, 05/25/2010
- Re: [charm] how to suspend/resume a chare ?, Kale, Laxmikant V, 05/25/2010
- Re: [charm] how to suspend/resume a chare ?, Christian Perez, 05/25/2010
- Re: [charm] how to suspend/resume a chare ?, Gengbin Zheng, 05/25/2010
- Re: [charm] how to suspend/resume a chare ?, Christian Perez, 05/26/2010
- Re: [charm] how to suspend/resume a chare ?, Gengbin Zheng, 05/26/2010
- Re: [charm] how to suspend/resume a chare ?, Christian Perez, 05/26/2010
- Re: [charm] how to suspend/resume a chare ?, Gengbin Zheng, 05/26/2010
- Re: [charm] how to suspend/resume a chare ?, Christian Perez, 05/27/2010
- Re: [charm] how to suspend/resume a chare ?, Gengbin Zheng, 05/27/2010
- Re: [charm] how to suspend/resume a chare ?, Christian Perez, 05/26/2010
- Re: [charm] how to suspend/resume a chare ?, Gengbin Zheng, 05/25/2010
- Re: [charm] how to suspend/resume a chare ?, Christian Perez, 05/25/2010
- Re: [charm] how to suspend/resume a chare ?, Kale, Laxmikant V, 05/25/2010
- Re: [charm] how to suspend/resume a chare ?, Christian Perez, 05/25/2010
Archive powered by MHonArc 2.6.16.