create thread resource to handle the creation of a specific resource for a specific thread at run-time