[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]
>So I can't use mutex...
>If there is only one or some determined files,
>I can use a mutex per file after pre-determine mutex variables (such as no
>of mutex variables).
>But I can't ....
It's all a small matter of software engineering; you will need to
make a table of all active files and associate a mutex with each
file; once no thread references the file anymore, you free the mutex.
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.