--%>

Restrictions implied on API functions

What are the restrictions implied on API functions?

E

Expert

Verified

The use of API function is to provide easy to use interface and have functions that reads the processes and memory.

a. API function can read the memory region and can be used by anyone without any restrictions.

b. The restrictions implied on the functions are as follows:

i. Windows API functions call different API that is known as Native API. This allows the easy interaction with the kernel, but at this time the CPU switches to the kernel mode.

ii. The special instruction for the system calls like sysenter and sysexit allow the CPU to switch to the ring 0, which in turn execute the handler provided by the operating system.

   Related Questions in Programming Languages

  • Q : What is Signal Handler Signal Handlers:

    Signal Handlers: In some operating systems, signal handlers are executed on a thread stack; they “overlay” the current thread execution (which may be used, for example, in combination with setjmp/longjmp to create user-domain lightweight t

  • Q : Define the term Statement terminator

    Define the term Statement terminator: The semicolon (;) is employed to point out the end of a statement.

  • Q : Explain the difference between the

    Explain the difference between the Interpreter and Compiler?

  • Q : What is Stack overflow Stack overflow :

    Stack overflow: Stack overflow takes place whenever too many items are pushed onto a stack with a finite or limited capacity.

  • Q : Explain Abstraction Abstraction : It is

    Abstraction: It is a simplified symbolization of something which is potentially quite complex. It is frequently not essential to know the precise details of how something works, is symbolized or is implemented, since we can still make use of it in its

  • Q : Throughout system testing the

    Someone complains that throughout system testing the application frequently crashes. What probable process problem does which indicate?

  • Q : What is Stepwise refinement Stepwise

    Stepwise refinement: It is a divide and conquer approach to the programming, in which a complicated problem is recursively divided into smaller, sub-problems and more manageable. This approach to program design is frequently employed with structured p

  • Q : State the term multi threading State

    State the term multi threading.

  • Q : Explain Multiple inheritance Multiple

    Multiple inheritance: The capability of a class or interface to expand more than one interface or class. In Java, multiple inheritance is only accessible in the circumstances which are shown below: An interf