cross platfrom implementation using threads
typo, cross platfrom implementation using threads