Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Dummy question about /proc/cpuinfo Post 302247543 by kumarcbs on Thursday 16th of October 2008 12:25:15 AM
Old 10-16-2008
hi

I have little knowledge of UNIX; I give u step by step in command u look that one

1. uname -r
2. grep 'physical id' /proc/cpuinfo |sort | uniq | wc -l
3. grep ^processor /proc/cpuinfo |wc -l
4.grep 'cpu cores' /proc/cpuinfo
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix dummy's question

:confused: Hi, 2 questions to get some insight. Thanks (1) I would like to add a prefix (XX00) in each row of the line in my text file and save a newly generated file another name. How to go about it. (2) How to insert a blank line into each row in my file. and save the file another name.... (2 Replies)
Discussion started by: merry susana
2 Replies

2. UNIX for Dummies Questions & Answers

question from a dummy

okay so I just started this unix class and understood all the test questions but this "normal" question threy me through a loop :confused:. The question is Why are UNIX commands noninteractive and why is their output not usually preceededby header information? This question has been driving me... (2 Replies)
Discussion started by: cinnamonbear
2 Replies

3. Filesystems, Disks and Memory

A simple dummy question

Hello Everyone! changing from Microsoft to Macintosh, I connected my hard disk (nearly full) to the apple computer, which could not recognize it. I was prompt to "initialize it", unfortunately I DECIDED YES!!, but just for 1/100 of a second: now I cannot access the hard disk at all. Is still... (1 Reply)
Discussion started by: NETTO68
1 Replies

4. UNIX for Dummies Questions & Answers

a dummy question...needs help...

I am trying to use 'cut' to get a line from my file. But it seems that 'cut' recongnizes TAB as default. My file uses space instead. So 'cut' doesn't work. Anybody can tell me how to change the default from TAB to space ? Or how to transform a space-delimited file into tab-delimited file??... (2 Replies)
Discussion started by: kaixinsjtu
2 Replies

5. UNIX for Dummies Questions & Answers

Definition of "siblings" in /proc/cpuinfo

So, I'm looking over /proc/cpuinfo and have a question... I've read that "siblings" refers to hyperthreading, but that seems odd considering the contents of cpuinfo. Here's a part: model name : Intel(R) Xeon(R) CPU E5410 @ 2.33GHz physical id : 0 siblings : 4 core... (1 Reply)
Discussion started by: treesloth
1 Replies

6. Red Hat

Question on /proc/cpuinfo

Hi, I wanted to understand what exactly /proc/cpuinfo shows? We have a machine with following specification... (2x) Intel Xeon 6-core processors So, ideally it shouls have 12processors, but the output on /proc/cpuinfo shows 24 processors. Can someone please explain how this is... (3 Replies)
Discussion started by: shrshah64
3 Replies

7. SuSE

Post Your /proc/cpuinfo here!

Here is a chance for Linux users to easily compare Linux CPU info and some meaningless BOGOMIPS. Everyone who is running Linux is welcome to: cat /proc/cpuinfo and post the results. Here is the results for www.unix.com: processor : 0 vendor_id : AuthenticAMD cpu family... (182 Replies)
Discussion started by: Neo
182 Replies

8. IP Networking

DNS dummy question

Hello everyone, I have a some doubt about DNS. We have connected to 2 ISPs /ISP#1 and ISP#2/. Our web site's dns zone is located on ISP#1. If connection to ISP#1 is down clients won't find our website. ISP#1 connection went down few times this month. So we are going to create our website's... (0 Replies)
Discussion started by: sembii
0 Replies

9. UNIX for Dummies Questions & Answers

Dummy question on awk

Hi, I have a file which has three columns and 200 rows. I would like to print an extra column say "disco" for every 10 th row starting from 4 th row. How is that possible? Thnx (4 Replies)
Discussion started by: Indra2011
4 Replies

10. UNIX for Beginners Questions & Answers

Dummy Question

Where can I get UNIX? (1 Reply)
Discussion started by: ciao303
1 Replies
Tcl_CreateChannelHandler(3)				      Tcl Library Procedures				       Tcl_CreateChannelHandler(3)

__________________________________________________________________________________________________________________________________________________

NAME
Tcl_CreateChannelHandler, Tcl_DeleteChannelHandler - call a procedure when a channel becomes readable or writable SYNOPSIS
#include <tcl.h> void Tcl_CreateChannelHandler(channel, mask, proc, clientData) void Tcl_DeleteChannelHandler(channel, proc, clientData) ARGUMENTS
Tcl_Channel channel (in) Tcl channel such as returned by Tcl_CreateChannel. int mask (in) Conditions under which proc should be called: OR-ed combination of TCL_READABLE, TCL_WRITABLE and TCL_EXCEPTION. Specify a zero value to temporarily disable an existing handler. Tcl_FileProc *proc (in) Procedure to invoke whenever the channel indicated by channel meets the conditions specified by mask. ClientData clientData (in) Arbitrary one-word value to pass to proc. _________________________________________________________________ DESCRIPTION
Tcl_CreateChannelHandler arranges for proc to be called in the future whenever input or output becomes possible on the channel identified by channel, or whenever an exceptional condition exists for channel. The conditions of interest under which proc will be invoked are speci- fied by the mask argument. See the manual entry for fileevent for a precise description of what it means for a channel to be readable or writable. Proc must conform to the following prototype: typedef void Tcl_ChannelProc( ClientData clientData, int mask); The clientData argument is the same as the value passed to Tcl_CreateChannelHandler when the handler was created. Typically, clientData points to a data structure containing application-specific information about the channel. Mask is an integer mask indicating which of the requested conditions actually exists for the channel; it will contain a subset of the bits from the mask argument to Tcl_CreateChannelHan- dler when the handler was created. Each channel handler is identified by a unique combination of channel, proc and clientData. There may be many handlers for a given channel as long as they don't have the same channel, proc, and clientData. If Tcl_CreateChannelHandler is invoked when there is already a handler for channel, proc, and clientData, then no new handler is created; instead, the mask is changed for the existing handler. Tcl_DeleteChannelHandler deletes a channel handler identified by channel, proc and clientData; if no such handler exists, the call has no effect. Channel handlers are invoked via the Tcl event mechanism, so they are only useful in applications that are event-driven. Note also that the conditions specified in the mask argument to proc may no longer exist when proc is invoked: for example, if there are two handlers for TCL_READABLE on the same channel, the first handler could consume all of the available input so that the channel is no longer readable when the second handler is invoked. For this reason it may be useful to use nonblocking I/O on channels for which there are event handlers. SEE ALSO
Notifier(3), Tcl_CreateChannel(3), Tcl_OpenFileChannel(3), vwait(n). KEYWORDS
blocking, callback, channel, events, handler, nonblocking. Tcl 7.5 Tcl_CreateChannelHandler(3)
All times are GMT -4. The time now is 06:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy