The thread() function returns the operating system thread ID that is associated with the adapter that is invoking the ASL script.