Sponsored Content
Operating Systems Linux Java Process to use Multiple Processors Post 302542647 by mark54g on Thursday 28th of July 2011 09:21:49 AM
Old 07-28-2011
You answered yourself.

The process is single threaded. Single threaded applications do not usually switch CPUs. If you want to make use of your multiple CPU machine, rewrite the code to be multi threaded.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How do i kill -9 multiple processors at once

Hi There How do i kill multiple processors on unix version 5.05, I know how to kill a single processors individually (e.g kill -9 process number),but i need to do it daily as some users dont log off the systems and keeps processor's running, and when the night jobstream executes it falls over... (7 Replies)
Discussion started by: esh
7 Replies

2. Solaris

java process does not respawn

Hi, I am working on Solaris 8 on sunblade 150 machine.I have a java code jar file which I have configured in inittab to respawn.When I kill the process as per the respawn property the new process id gets generated.If I keep killing the process after 4-5 tries the process does not respawn.Sometimes... (0 Replies)
Discussion started by: girish_shukla
0 Replies

3. UNIX for Dummies Questions & Answers

Custom name from java process

The Linux ps (report process status) utility is not very helpful when it comes to Java processes : The java executable path is usually so long, that the ps listing does not show any of its paramaters even in long mode. == 15379 ? S 0:01 /usr/local/java/ibm-jdk1.3/jre/bin/exe/java... (2 Replies)
Discussion started by: vinbitian
2 Replies

4. UNIX for Advanced & Expert Users

Custom name for java process

The Linux ps (report process status) utility is not very helpful when it comes to Java processes : The java executable path is usually so long, that the ps listing does not show any of its paramaters even in long mode. == 15379 ? S 0:01 /usr/local/java/ibm-jdk1.3/jre/bin/exe/java -Djava.se == ... (1 Reply)
Discussion started by: vinbitian
1 Replies

5. Shell Programming and Scripting

problem in java process

Hi, My operating system is centOS. I am running a java process on this os. But my process is killed automatically before completion. The timing of process killing is uncertain. Please help me. Thanks in advance, (0 Replies)
Discussion started by: Mrs. Deswal
0 Replies

6. Shell Programming and Scripting

return code of multiple java process

Hi, I have a unix shell script which is launching multiple java processes by calling a java class in a loop, but each time with a different set of parameters. Now I have to use the return code from each process in the script later. but how do i obtain the return code from each process... (1 Reply)
Discussion started by: rama354
1 Replies

7. Programming

Parallel process in java

Hello; Please Are both threads execute in parallel? Thank you (4 Replies)
Discussion started by: chercheur857
4 Replies

8. UNIX for Dummies Questions & Answers

How do you identify a java process?

Hi, how do you identify if a java process is running in Unix? So for example if I have 8 JVM's running but I want to make sure one of them has definately stopped? (1 Reply)
Discussion started by: nosuchluck
1 Replies

9. Infrastructure Monitoring

Multiple Processors and Load Average

The following information shows that there are in total 4 Processors on this machine: $ grep -i name /proc/cpuinfo model name : Dual-Core AMD Opteron(tm) Processor 2218 model name : Dual-Core AMD Opteron(tm) Processor 2218 model name : Dual-Core AMD Opteron(tm) Processor 2218... (1 Reply)
Discussion started by: indiansoil
1 Replies

10. Shell Programming and Scripting

Command to get exact tomcat process I am running ignoring other java process

Team, I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list. How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies
getnetgrent(3C) 					   Standard C Library Functions 					   getnetgrent(3C)

NAME
getnetgrent, getnetgrent_r, setnetgrent, endnetgrent, innetgr - get network group entry SYNOPSIS
#include <netdb.h> int getnetgrent(char **machinep, char **userp, char **domainp); int getnetgrent_r(char **machinep, char **userp, char **domainp, char *buffer, intbuflen); int setnetgrent(const char *netgroup); int endnetgrent(void); int innetgr(const char *netgroup, const char *machine, const char *user, const char *domain); DESCRIPTION
These functions are used to test membership in and enumerate members of ``netgroup'' network groups defined in a system database. Net- groups are sets of (machine,user,domain) triples (see netgroup(4)). These functions consult the source specified for netgroup in the /etc/nsswitch.conf file (see nsswitch.conf(4)). The function innetgr() returns 1 if there is a netgroup netgroup that contains the specified machine, user, domain triple as a member; otherwise it returns 0. Any of the supplied pointers machine, user, and domain may be NULL, signifying a "wild card" that matches all values in that position of the triple. The innetgr() function is safe for use in single-threaded and multithreaded applications. The functions setnetgrent(), getnetgrent(), and endnetgrent() are used to enumerate the members of a given network group. The function setnetgrent() establishes the network group specified in the parameter netgroup as the current group whose members are to be enumerated. Successive calls to the function getnetgrent() will enumerate the members of the group established by calling setnetgrent(); each call returns 1 if it succeeds in obtaining another member of the network group, or 0 if there are no further members of the group. When calling either getnetgrent() or getnetgrent_r(), addresses of the three character pointers are used as arguments, for example: char *mp, *up, *dp; getnetgrent(&mp, &up, &dp); Upon successful return from getnetgrent(), the pointer mp points to a string containing the name of the machine part of the member triple, up points to a string containing the user name and dp points to a string containing the domain name. If the pointer returned for mp, up, or dp is NULL, it signifies that the element of the netgroup contains wild card specifier in that position of the triple. The pointers returned by getnetgrent() point into a buffer allocated by setnetgrent() that is reused by each call. This space is released when an endnetgrent() call is made, and should not be released by the caller. This implementation is not safe for use in multi-threaded applications. The function getnetgrent_r() is similar to getnetgrent() function, but it uses a buffer supplied by the caller for the space needed to store the results. The parameter buffer should be a pointer to a buffer allocated by the caller and the length of this buffer should be specified by the parameter buflen. The buffer must be large enough to hold the data associated with the triple. The getnetgrent_r() func- tion is safe for use both in single-threaded and multi-threaded applications. The function endnetgrent() frees the space allocated by the previous setnetgrent() call. The equivalent of an endnetgrent() implicitly performed whenever a setnetgrent() call is made to a new network group. Note that while setnetgrent() and endnetgrent() are safe for use in multi-threaded applications, the effect of each is process-wide. Call- ing setnetgrent() resets the enumeration position for all threads. If multiple threads interleave calls to getnetgrent_r() each will enu- merate a disjoint subset of the netgroup. Thus the effective use of these functions in multi-threaded applications may require coordination by the caller. ERRORS
The function getnetgrent_r() will return 0 and set errno to ERANGE if the length of the buffer supplied by caller is not large enough to store the result. See Intro(2) for the proper usage and interpretation of errno in multi-threaded applications. The functions setnetgrent() and endnetgrent() return 0 upon success. FILES
/etc/nsswitch.conf ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |See DESCRIPTION section. | +-----------------------------+-----------------------------+ SEE ALSO
Intro(2), Intro(3), netgroup(4), nsswitch.conf(4), attributes(5) WARNINGS
The function getnetgrent_r() is included in this release on an uncommitted basis only, and is subject to change or removal in future minor releases. NOTES
Only the Network Information Services, NIS and NIS+, are supported as sources for the netgroup database. When compiling multi-threaded applications, see Intro(3), Notes On Multithread Applications, for information about the use of the _REEN- TRANT flag. SunOS 5.10 5 Apr 2004 getnetgrent(3C)
All times are GMT -4. The time now is 04:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy