On 14.7.2013 18:28, Martin Decky wrote:
> 4. Your code of sys_thread_join() won't work as expected simply because
>    all user space (kernel-managed) threads are currently always created
>    as detached (see the comment and the first call in the function
>    uinit() in kernel/generic/src/main/uinit.c).

Yes, the kernel uses the join/detach mechanism internally for itself in
order to wait for some kernel threads. As Martin referred to the
comment, all uinit threads (i.e. kernel threads that run the user code
once in userspace) are immediately detached by the kernel when in
uinit(). It seems to me that this new prospective userspace joining
functionality should be independent of the kernel mechanism anyway so
that the user cannot confuse the kernel when using these new syscalls
inappropriately.

Jakub


_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to