Support for multiple threading models