process ,threads and system calls
Hi,
i am newbit to Linux. i have been reading many books and tutorials online about kernel and etc.... i feel like still i need a solid and simple example, that shows the difference among the three terms (process ,threads and system calls). if we assume this "hello world" code: Code:
#include <stdio.h> if u have a better example plz post it. thanks |
when you run that program it is a process and it is a new thread(AFAIK)
this sounds suspiciously like homework |
Quote:
where is the system call in here? any better examples? more over POSIX or ANSI C functions (like sigaction(),setitimer(),mmap() etc...)are considered threads or what? thanks |
Quote:
Code:
#include <stdio.h> a function call does not normally make a new thread |
Quote:
like what? |
Quote:
http://www.ibm.com/developerworks/library/l-posix1.html http://arstechnica.com/articles/paed...rthreading.ars |
HI,
sigaction() is system call or API? setitimer() is system call or API? thanks |
Quote:
|
lol,
if i had not googled, then i would post a thread from the begging. But bcoz i have some misconceptions thats y i posted this thread. Unless u dont know the answer ;) |
sigaction() is part of the c library and setitimer() is a system call
|
and, incidentally, system() is in fact a library call, not a system call ;)
|
HI chrism,
AceofSpace19 said Quote:
Quote:
|
Quote:
|
http://www.cs.cf.ac.uk/Dave/C/ this is a good book you can get started with.
Is from University of Leeds, and has an ugly copyright, but still readable online. here can found more: http://en.wikibooks.org/wiki/Programming:C sorry can't edit links on ephy :( |
Code:
man man Quote:
|
All times are GMT -5. The time now is 05:45 PM. |