Liste des Groupes | Revenir à cl ada |
I was (of course) presuming that "tasklets" would get those capabilities ifWell, tasks are not only for speeding up code. They can be a very useful design tool (active objects, independant activities). I think the Ada model is clean and simple, I would hate to see it disappear.
they were to replace tasks. That's what I meant about "suspension", which is
not currently allowed for threads in Ada (parallel code is not allowed to
call potentially blocking operations). If that was changed, then all forms
of existing task communication would be allowed.
I'm less certain about the value of priorities, most of the time, they don'tIf you had as many cores as tasks, you would not need priorities. Priorities are just optimization on how to manage cores when there are not enough of them.
help writing correct Ada code. (You still need all of the protections
against race conditions and the like.) I do realize that they are a natural
way to express constraints on a program. So I admit I don't know in this
area, in particular if there are things that priorities are truly required
for.
Les messages affichés proviennent d'usenet.