12-04-2001
hi helvetica,
usually any pc with more than zero processors works just fine <grin>
although you have to pay for versions of solaris running on more than 8 processors....
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have just recently installed solaris8 on my box, and got two minor problems: Based on the size of partitions i should have approx 10gigs of mem., but the system registeres 0 space available on my harddrive....That problem results in a slight inability to install any apps... The second problem is... (3 Replies)
Discussion started by: Diesel
3 Replies
2. UNIX for Dummies Questions & Answers
I am a real newbie to linux/unix and need alot of help. I have been trying to find through books and internet , how to change the network properties(ip address,subnet mask, protocols,ect..)But I cant seem to find out how.Also do I need to install samba to network to other windows machines on a peer... (2 Replies)
Discussion started by: scotte
2 Replies
3. UNIX for Dummies Questions & Answers
hi,
With Solaris 8. after I enter df -k, I see 2 lines of SWAP; one is mounted on /var/run while the other is on /tmp.
I remembered that I set up only 1 swap during the installation. Then, a Solaris Admin book says that the TMPFS fils system is a new feature.
Can someone please share... (7 Replies)
Discussion started by: andrec
7 Replies
4. UNIX for Dummies Questions & Answers
Hello,I have a problme when log on Solaris 8 ,screen show"DT information system do not startup".what's this.how to do it?
thankx. (3 Replies)
Discussion started by: Yeliu
3 Replies
5. UNIX for Dummies Questions & Answers
there is -r switch for grep in linux, but in solaris 8, I found it doesn't support it. But I really need this function to rescue my
sub-directories, so anybody can help me?thanks!! (2 Replies)
Discussion started by: cooldown
2 Replies
6. Shell Programming and Scripting
Hi i just downloaded Python just to try it out are there any sites or tuts i can get to get me started?
thanx (1 Reply)
Discussion started by: SimJim81
1 Replies
7. Solaris
What is the max file system that I can create. Is the max 2TB? I trying to connect a iscsi device and Solaris can only see 999 GB. Do I have to change sector size? (2 Replies)
Discussion started by: kmcguinn71
2 Replies
8. UNIX for Dummies Questions & Answers
question:
why is that when I created a user under solaris8, i got two lines before the login..
sample:
login as: user1
user1@1.1.1.1's password:
Last login: Fri Feb 25 17:00:52 2011 from 12.0.0.5
Sun Microsystems Inc. SunOS 5.8 Generic February 2000
Sun Microsystems Inc. SunOS... (0 Replies)
Discussion started by: lhareigh890
0 Replies
9. Solaris
hello,
i am trying to compile wxWidgets on a Solaris8 box, but get this message:
checking for XML_ParserCreate in -lexpat... yes
checking for mspack.h... no
checking for X... no
configure: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for... (0 Replies)
Discussion started by: Norman Khine
0 Replies
10. UNIX for Dummies Questions & Answers
Hi,
Unfortunately, we still have Solaris 8 to support and it does not support df -h so I am stucked with having to use df -k. UNIX shell is ksh.
Example of df -k run is below:
$ df -k /db/test01 | awk '{ print }'
Filesystem kbytes used avail capacity Mounted on... (2 Replies)
Discussion started by: newbie_01
2 Replies
LEARN ABOUT MINIX
get_nprocs_conf
GET_NPROCS(3) Linux Programmer's Manual GET_NPROCS(3)
NAME
get_nprocs, get_nprocs_conf - get number of processors
SYNOPSIS
#include <sys/sysinfo.h>
int get_nprocs(void);
int get_nprocs_conf(void);
DESCRIPTION
The function get_nprocs_conf() returns the number of processors configured by the operating system.
The function get_nprocs() returns the number of processors currently available in the system. This may be less than the number returned by
get_nprocs_conf() because processors may be offline (e.g., on hotpluggable systems).
RETURN VALUE
As given in DESCRIPTION.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).
+------------------+---------------+---------+
|Interface | Attribute | Value |
+------------------+---------------+---------+
|get_nprocs(), | Thread safety | MT-Safe |
|get_nprocs_conf() | | |
+------------------+---------------+---------+
CONFORMING TO
These functions are GNU extensions.
NOTES
The current implementation of these functions is rather expensive, since they open and parse files in the /sys filesystem each time they
are called.
The following sysconf(3) calls make use of the functions documented on this page to return the same information.
np = sysconf(_SC_NPROCESSORS_CONF); /* processors configured */
np = sysconf(_SC_NPROCESSORS_ONLN); /* processors available */
EXAMPLE
The following example shows how get_nprocs() and get_nprocs_conf() can be used.
#include <stdlib.h>
#include <stdio.h>
#include <sys/sysinfo.h>
int
main(int argc, char *argv[])
{
printf("This system has %d processors configured and "
"%d processors available.
",
get_nprocs_conf(), get_nprocs());
exit(EXIT_SUCCESS);
}
SEE ALSO
nproc(1)
COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
GNU
2017-09-15 GET_NPROCS(3)