Added kernel threads basic support