X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e4abd3f271729beeff499da36267bfb274dd1f6d..b3ca3a517af21780e88cc89869b16927d1fea68a:/src/simix/README_attempt_without_stack diff --git a/src/simix/README_attempt_without_stack b/src/simix/README_attempt_without_stack index 4ad29b0812..a7b145fad7 100644 --- a/src/simix/README_attempt_without_stack +++ b/src/simix/README_attempt_without_stack @@ -12,7 +12,7 @@ Shiny side: glance at interface It uses a new simix context factory: state_machine. Each user process is a state machine. There is no system mystery such as pthread or -ucontextes to save its stack. As a result, there is no stack. Each +ucontexts to save its stack. As a result, there is no stack. Each user process only have a user-provided structure describing its state, and only compute its next state based on that. Your main() can be as simple as: @@ -35,7 +35,7 @@ simple as: the structure describing a process. This way of organizing the code saves a *huge amount* of memory -(regular contextes have 128kb stacks per user process, threads are +(regular contexts have 128kb stacks per user process, threads are even more expensive) and greatly speeds things up (there is absolutely no nothing to ask to the system, and everything can be done in user space).