Linux and java processes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I'm testing some Java programs and I've noted that Linux sees Java processes 
differently from c ones.
A preliminary statements:
1) I compile C programs with gcc and Java programs with gcj, so the binary 
code is equivalent.
2) the main of the programs are similare. They execute anoly a while(true) 
loop in which a string is printed.

The C executable file is "cprog".
The Java executable file is "javaprog".

When I run "ps -l -C cprog", the result is like this:

pid    ppid  .......
490   474   ........

While, the result of "ps -l -C javaprog" is like this:

pid    ppid .........
510   507   ........
511   510  ........
512   511  ......

Why this happens on Java programs? What is the real program? 
I want to underline that, in these examples, I'm not using threads.

Vincenzo Mallozzi.

	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux