Alex Rivera | Logout

Why should I Minimize the use of system call in my code?

Asked 2011-06-21T11:46:46.507
12

I wanted to know is there any reason to minimize use of system call in code and what is the alternate of not using system call ,one would say use API but api in turns use system call

Is it True??

Edit
Report

1 Answer

0

The only reason that cames to my mind right now is portability issues. If you use system calls, your code will only run on that Operating System. And if you need to compile the same source to another OS, you will be in trouble, the API may be completely different.

answered 2011-06-21T12:01:15.723

Your Answer