lkml.org 
[lkml]   [2000]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: Thread Questions
Date

> Taking off from Linus' suggestion of task-group-ids,
> why not having something like
> /proc/tgroups/<tgid>
> containg only symlinks to the dirs in /proc/<pid> for
> tasks belonging to some task-group?
>
> Sure, it wouldn't explain WHAT the tasks are sharing, but still...

It may make more sense for things like /proc/pid/XXX/mem to be a symlink to
/proc/tgroups/XXX/mem. If all members of a tgroup share their fds, it makes
sense to symlink /proc/pid/XXX/fd in this manner as well.

The problem is, the mapping of vms to tgroups is usually, but doesn't have
to be, one-to-one. Same for fds. You can artificially solve this problem
with the following rule: A call to fork preserves the existing tgroup if and
only if both the vm and fds are shared.

This works well for the POSIX threading model but isn't exactly elegant.

DS

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.030 / U:1.740 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site