Professional Documents
Culture Documents
c platform
$ vi main.c
#include"stdio.h"
main ()
{
printf ( "hello world !\n") ;
}
$ gcc main.c
$ ./a.out
c++ platform
$ vi abc.cpp
#include"iostream"
using namespace std ;
main ()
{
cout << "hello world !\n" ;
}
$ g++ abc.cpp
$ ./a.out
java platform
$ vi demo.java
class demo
{
public static void main ( String args [] )
{
System . out . println ( "hello world !");
}
}
$ javac demo.java
$ java demo
python platform
$ vi test.py
print ( "hello world !")
$ python test.py
Process:
When a program starts execution that is know as a process / a running program
is know as process.
Process is the running instance of a program
The basic difference Between Program & Process is Program does not allocate
memory but process allocate memory.
Process allocate memory in RAM segment not in HDD Drive.