C System Threading Task