LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Are programs like sys_open( ) ,sys_read( ) et al examples of system level programs ? (http://www.linuxquestions.org/questions/linux-newbie-8/are-programs-like-sys_open-sys_read-et-al-examples-of-system-level-programs-764686/)

kashyapa 10-26-2009 09:56 PM

Are programs like sys_open( ) ,sys_read( ) et al examples of system level programs ?
 
Are the programs written on schedulers ,thread library , process management, memory management, et al called systems programs ? How are they different from the programs that implement functions like open() , printf() , scanf() , read() .. they have a prefix sys_open, sys_close, sys_read etc , right ? Is there any difference of hierarchy between the programs that implement system calls and system level programs like that implement thread library, process management , memory managemnt etc..

Hope you understood my qstn

Quakeboy02 10-26-2009 10:11 PM

Actually, those are functions, not programs. They interact with the OS through system calls (to system functions). Does that help?

kashyapa 10-26-2009 11:10 PM

Quote:

Originally Posted by Quakeboy02 (Post 3733604)
Actually, those are functions, not programs. They interact with the OS through system calls (to system functions). Does that help?

are the programs that implement the library functions system level programs ?

smeezekitty 10-26-2009 11:32 PM

i smell home work.

Quakeboy02 10-27-2009 12:00 PM

Quote:

Originally Posted by kashyapa (Post 3733638)
are the programs that implement the library functions system level programs ?

There are no programs that implement the library functions. This may seem like a fine distinction, but it must be made, nonetheless. A program is a self-contained unit having a "main()" function. Note the word "function". Programs are made of code and calls to functions, not the reverse. Functions are self-contained bits of code that may call other functions. They do not contain a "main()" function. You really need to discuss with your instructor the difference between a function and a program.

kashyapa 10-27-2009 08:20 PM

I got this cleared ..Here goes the clarification
" Functions like open() , printf() , scanf() , read() are library function implemented on top of their sys_* counterparts so they can be used for any Application development. On the other hand sys_open, sys_close, sys_read etc are implemented as-part-of-system commonly known as kernel. On top of this, system programs like thread library, compilers, linkers are implemented which helps other application development. Hope this clears the difference between system, system programs and application programs. "


All times are GMT -5. The time now is 12:45 AM.