Edited Sys calls and Thread