Please see the screenshots below for basic explanations.
Detailed explanations, how the workflow system works
If a user opened a task for editing, no other user can edit it as long as the session of the editing user is valid and he does not close the task.
...