Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Are programs like sys_open( ) ,sys_read( ) et al examples of system level programs ? Post 302365387 by vishwamitra on Tuesday 27th of October 2009 09:22:37 PM
Old 10-27-2009
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

---------- Post updated 10-27-09 at 09:22 PM ---------- Previous update was 10-26-09 at 11:01 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. "
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Where did my programs go?

I notice that (Mandrake) Linux and Windows do not seem to operate alike in terms of installing third party software. Windows, on one hand, creates icons and adds items to the Start Menu, with the help of the InstallShield--or equivalent, of course, but Linux, on the other hand, seems to care... (3 Replies)
Discussion started by: helvetica
3 Replies

2. Programming

Compiling C programs

Hi everyone, If you have a few c programs to compile, from a make file, how can you tell which program is compiled first. Descriptively, you may have: objects = main.o xyz.o 123.o abc.o target : $(objects) $(CC) -o $@ $(objects) Does this mean program xyz is called within main,... (1 Reply)
Discussion started by: rachael
1 Replies

3. Shell Programming and Scripting

shell programs

how to write pipe for finding out the login names and login time of the users whose login name begins with p. (1 Reply)
Discussion started by: rameshparsa
1 Replies

4. UNIX for Dummies Questions & Answers

Installing Programs

Hello, I have a simple question. How do make it so i can lauch a program from the shell. For instance I want to install firefox 2 and I wanna launch it with ff2 in the terminal, so i tried this to my .bashrc file: alias ff2='/path/./firefox' and its not working as I would hope. anywho,... (2 Replies)
Discussion started by: SeamusHC
2 Replies

5. Shell Programming and Scripting

Installation of programs

I have installed a program and put the stuff on /usr/local/ However when I run a script it gives an error GMT Fatal Error: /home/chrisd/Dimech/GMT4.5.2/share/PS_font_info.d: No such file or directory (1 Reply)
Discussion started by: kristinu
1 Replies

6. Shell Programming and Scripting

Scripting Programs

Hi does anyone know some good shell scripting programs, like visual studio for C++/C#? (8 Replies)
Discussion started by: Mack1982
8 Replies

7. OS X (Apple)

Replacement programs

I just upgraded to Snow Leopard and some of my programs no longer work. I need a good DVD ripper/encoder. I was using Handbrake and Mac the Ripper but they no longer work on my MAC. They also don't have a newer viersion that works with my OS. Can someone help by giving me a suggestion? (2 Replies)
Discussion started by: bitlord
2 Replies

8. UNIX for Dummies Questions & Answers

how the operating system compiles c programs at the time of booting.

unix and linux does not makes executable files for all the programs. it compiles it and executes it whenever require. at the time of booting the system, how kernel compiles those c programs without "gcc". (1 Reply)
Discussion started by: anandgodse
1 Replies

9. UNIX for Dummies Questions & Answers

Difference between inbuilt suid programs and user defined root suid programs under bash shell?

Hey guys, Suppose i run passwd via bash shell. It is a suid program, which temporarily runs as root(owner) and modifies the user entries. However, when i write a C file and give 4755 permission and root ownership to the 'a.out' file , it doesn't run as root in bash shell. I verified this by... (2 Replies)
Discussion started by: syncmaster
2 Replies

10. Homework & Coursework Questions

Need help on how to execute several programs

1. The problem statement, all variables and given/known data: Get each of these programs to run. Prove that you've done this(use script). Give a description of each program along with sample executions. These are the exact programs we were given. 2. Relevant commands, code, scripts,... (11 Replies)
Discussion started by: FaTaL
11 Replies
TKILL(2)						     Linux Programmer's Manual							  TKILL(2)

NAME
tkill, tgkill - send a signal to a thread SYNOPSIS
int tkill(int tid, int sig); int tgkill(int tgid, int tid, int sig); Note: There are no glibc wrappers for these system calls; see NOTES. DESCRIPTION
tgkill() sends the signal sig to the thread with the thread ID tid in the thread group tgid. (By contrast, kill(2) can be used to send a signal only to a process (i.e., thread group) as a whole, and the signal will be delivered to an arbitrary thread within that process.) tkill() is an obsolete predecessor to tgkill(). It allows only the target thread ID to be specified, which may result in the wrong thread being signaled if a thread terminates and its thread ID is recycled. Avoid using this system call. If tgid is specified as -1, tgkill() is equivalent to tkill(). These are the raw system call interfaces, meant for internal thread library use. RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is set appropriately. ERRORS
EINVAL An invalid thread ID, thread group ID, or signal was specified. EPERM Permission denied. For the required permissions, see kill(2). ESRCH No process with the specified thread ID (and thread group ID) exists. VERSIONS
tkill() is supported since Linux 2.4.19 / 2.5.4. tgkill() was added in Linux 2.5.75. CONFORMING TO
tkill() and tgkill() are Linux-specific and should not be used in programs that are intended to be portable. NOTES
See the description of CLONE_THREAD in clone(2) for an explanation of thread groups. Glibc does not provide wrappers for these system calls; call them using syscall(2). SEE ALSO
clone(2), gettid(2), kill(2), rt_sigqueueinfo(2) COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2012-07-13 TKILL(2)
All times are GMT -4. The time now is 01:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy