answersLogoWhite

0


Best Answer

System calls are platform-dependent, while using abstracted APIs allows your programs to run on multiple platforms, which is a primary benefit of Java. You should minimize the use of system calls when possible, because those will not be portable across platforms.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

An API is collection of system calls and definitions..Using an API will make things a lot easier most of the time, as it will do a lot of low-level work for you. However, using system calls will give you more power, control, and possibly speed.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

It promotes portability between platforms.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why use api's rather than system calls?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Why you use API rather than System Calls?

System calls are much slower than APIs (library calls) since for each system call, a context switch has to occur to load the OS (which then serves the system call).


How many API?

There are 3 types of Java Programming Language Application Programming Interfaces (APIs) : • The official core Java API, contained in the JDK or JRE, of one of the editions of the Java Platform. The three editions of the Java Platform are Java ME (Micro edition), Java SE (Standard edition), and Java EE (Enterprise edition). • Optional official APIs that can be downloaded separately. The specification of these APIs are defined according to a Java Specification Request (JSR), and sometimes some of these APIs are later included in the core APIs of the platform (the most notable example of this kind is Swing). • Unofficial APIs, developed by third parties, but not related to any JSRs. Third-parties can freely implement any JSR specifications for an official API (even for the core API of the language), providing that they conform to the Technology Compatibility Kit (TCK) for this JSR (the TCK is a suite of tests that checks conformance of implementations for a JSR). The result of this freedom is that many official APIs have more implementations than the Sun's Reference implementation (RI).


How does jit works?

JIT is just in time and is a philosphy rather than a system. The purpose is to hold little or no stock such that you produce your product in a flexible manner to meet customer demand.


Does a method can throw an exception in java?

Yes it can. It is preferable to have code that will handle these exceptions in every class rather than throwing random exceptions that might confuse the user of the system


The main emphasis of procedure-oriented is on algorithms rather than on data?

the main emphasis of procedure oriented programming is on algorithms rather than on data

Related questions

Why you use API rather than System Calls?

System calls are much slower than APIs (library calls) since for each system call, a context switch has to occur to load the OS (which then serves the system call).


What is the true meaning of 'texting'?

Communicating in text on devices rather than voice and calls


What is considered a functional system rather than an organ system?

Immune System.


What are the advantages of lex communis compared other system of laws?

This question calls for an OPINION rather than a FACTUAL answer, which is what this website deals in. Suggest that the questioner post his premise in a blog or discussion room where they can get a variety of opinions to discuss.


Why is autonomic nervous system sometimes called emotional - visceral system?

Because it responds to emotions rather than conscious thought, and it acts on the viscera rather than the muscles of conscious motion.


Why are not president system in Canada?

Because it is a constitutional monarchy rather than a republic


What is an octarchy?

An octarchy is a government system ruled by eight rather than one.


Can dexron 6 be used in place of dexron 3?

You can ALWAYS use Dexron 6 in any system that calls for lower number Dexron. You can NEVER use lower number Dexron than what the system calls for. I hope this helps.


What organ system is endothermic and exothermic?

i think so individuals are endothermic or exothermic rather than organ system.


What is outsoucing?

Outsourcing - assuming that's what you meant, is using another company to perform work. A typical example would be an energy company using a call-centre to handle its calls, rather than dealing with the calls themselves.


What are the system calls of UNIX?

Any time a user or a process running in user space needs to do something that requires privilege it uses a system call interface to ask the operating system to do something on its behalf. There are many, many system calls to accomplish different things - more than could be listed here.


Why do the phone companies crash when everyone calls?

Simply because of the volume of calls. Any phone system only has a limited amount of capacity so, if more people use the system than it can handle, the system crashes (it's a kind of fail-safe to prevent damage to the equipment).