Enabling secure and efficient marshaling, utilization, and releasing of
handles in either of an operating system or runtime environment includes
wrapping a handle with a counter to tabulate a number of threads using
currently using the handle. Thus, handle administration is implemented to
circumvent potential security risks, avoid correctness problems, and
foster more efficient handle releasing.