Search This Blog

Showing posts with label Software works. Show all posts
Showing posts with label Software works. Show all posts

Saturday, May 17, 2008

Basic procedure/activities when an application calls a libray procedure

when an user application calls a libray procedure it puts some value according to the system service required into a register and int 30 will be executed.
When this is executed Operating systm system service will be called and sytem changes to kernel mode also, so that system service can call privileged instruction set.

In linux system service is exectued by a s/s interrupt which transfers the call to the architecture specific entry.s where a method system_entry is there and according to the number in the register this will executes the needed System service

Also every systm call is specified using a number in linux the relation can be seen in the asm/unistd.h file

Also the error returned status will be stored in the globakl variable errnoh which is stored in the errno.h file
Error constants can also be seen here.

Process Related
For each process that is maintained by the system a double linked list of struct task_struct(which is stored in <sched.h>) is stored

Inorder to spped the search a hash list is also kept in fork.c which names #pdhash

J2EE jboss-jvm_bind problem

J2EE

jboss-jvm_bind problem

go to windows console ie, comman prompt type:- netstat -ao you can see all the process ids that bind to every port of the system. Select the pid that binds to port that need to be used by jboss usually(1097 for jndi lookup...) go to windows task manager(ctrl+alt+delete) then go to process tab From the view menu select columns check out PID check box Find the process that matches the process id from netstat -ao kill or close that application