Sponsored Content
Operating Systems Linux Red Hat Dstat: column ---system---: what does int and csw mean. Post 302933390 by busi386 on Thursday 29th of January 2015 04:43:01 PM
Old 01-29-2015
thx. I interpret csw as the number of times the system is switching between threads to service different processes.

I interpret int are strait forward. The number of processes that need immediate attention.

wiki definitions posted below to save folks time if they read this forum post.
Please close this forum thread.


Context switch
From Wikipedia, the free encyclopedia

In computing, a context switch is the process of storing and restoring the state (context) of a process or thread so that execution can be resumed from the same point at a later time. This enables multiple processes to share a single CPU and is an essential feature of a multitasking operating system. What constitutes the context is determined by the processor and the operating system.[1]

Context switches are usually computationally intensive, and much of the design of operating systems is to optimize the use of context switches. Switching from one process to another requires a certain amount of time for doing the administration – saving and loading registers and memory maps, updating various tables and lists etc.


Interrupt
From Wikipedia, the free encyclopedia

In systems programming, an interrupt is a signal to the processor emitted by hardware or software indicating an event that needs immediate attention. An interrupt alerts the processor to a high-priority condition requiring the interruption of the current code the processor is executing. The processor responds by suspending its current activities, saving its state, and executing a function called an interrupt handler (or an interrupt service routine, ISR) to deal with the event. This interruption is temporary, and, after the interrupt handler finishes, the processor resumes normal activities.[1] There are two types of interrupts: hardware interrupts and software interrupts.

Hardware interrupts are used by devices to communicate that they require attention from the operating system.[2] Internally, hardware interrupts are implemented using electronic alerting signals that are sent to the processor from an external device, which is either a part of the computer itself, such as a disk controller, or an external peripheral. For example, pressing a key on the keyboard or moving the mouse triggers hardware interrupts that cause the processor to read the keystroke or mouse position. Unlike the software type (described below), hardware interrupts are asynchronous and can occur in the middle of instruction execution, requiring additional care in programming. The act of initiating a hardware interrupt is referred to as an interrupt request (IRQ).
 

7 More Discussions You Might Find Interesting

1. Programming

difference between int ** func() and int *& func()

What is the difference between int** func() and int*& func(). Can you please explain it with suitable example. Thanks, Devesh. (1 Reply)
Discussion started by: devesh
1 Replies

2. UNIX for Dummies Questions & Answers

int open(const char *pathname, int flags, mode_t mode) doubt...

hello everybody! I want to create a file with permissions for read, write, and execute to everybody using C, so I write this code: #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int main(){ int fileDescriptor; fileDescriptor =... (2 Replies)
Discussion started by: csnmgeek
2 Replies

3. Solaris

Solaris packages and .CSW files

Hello, I would like to know what are the *.CSW file for in a Solaris package or what is the "politic" of those files. I realized for example that when I install my package of Postfix, I have some postfix files created in /opt/csw/etc/postfix but some of them have the .CSW extension. This is... (0 Replies)
Discussion started by: Tex-Twil
0 Replies

4. UNIX for Dummies Questions & Answers

System date to a column

Hello, I would like to write a scrip which gives System Date for a column, is there any function I can use to print the System date. Thanks in Advance Regards, Mahesh (4 Replies)
Discussion started by: gmahesh2k
4 Replies

5. UNIX for Dummies Questions & Answers

Help needed with CUPS+gutenprint from CSW

Hello team. I have just migrated from Linux Arch to Solaris 11 (OpenSolaris 2008.05). My Epson Stylus Photo R800 worked wonderfully in Linux ... oh woe is me in Solaris. I cannot print. I get: lp: Unsupported format 'text/plain'! The R800 drivers are not in gimpprint so I had to... (1 Reply)
Discussion started by: keratos
1 Replies

6. Programming

Handle int listen(int sockfd, int backlog) in TCP

Hi, from the manual listen(2): listen for connections on socket - Linux man page It has a parameter called backlog and it limits the maximum length of queue of pending list. If I set backlog to 128, is it means no more than 128 packets can be handled by server? If I have three... (3 Replies)
Discussion started by: sehang
3 Replies

7. Linux

Dstat: column ---system---: what does int and csw mean.

Hello All It has been some time sense I was last here. Hopefully I have a few points left to get this question answered. I am finding that dstat is a really great tool, but does any one know what "init" and "csw" mean under the column --system--. I am not able to find anything in the man... (0 Replies)
Discussion started by: busi386
0 Replies
spl(9r) 																   spl(9r)

NAME
spl - General: Sets the processor priority to mask different levels of interrupts SYNOPSIS
#include <machine/cpu.h> int getspl( void ); int splbio( void ); int splclock( void ); int spldevhigh( void ); int splextreme( void ); int splhigh( void ); int splimp( void ); int splnet( void ); int splnone( void ); int splsched( void ); int splsoftclock( void ); int spltty( void ); int splvm( void ); int splx( int x ); ARGUMENTS
Specifies a CPU priority level. This level must be a value returned by a previous call to one of the spl routines. DESCRIPTION
The operating system supports the naming of spl routines to indicate the associated device types. Named spl routines make it easier to determine which routine you should use to set the priority level for a given device type. The following table summarizes the uses for the different spl routines: Obtains the spl value. Masks all disk and tape controller interrupts. Masks all hardware clock interrupts. Masks all device and software interrupts. Blocks against all but halt interrupts. Masks all interrupts except for realtime devices, machine checks, and halt interrupts. Masks all LAN hardware interrupts. Masks all network software interrupts. Unmasks (enables) all interrupts. Masks all scheduling interrupts (usually the hardware clock). Masks all software clock interrupts. Masks all tty (terminal device) inter- rupts. Masks all virtual memory clock interrupts. Resets the CPU priority to the level specified by the argument. NOTES
The binding of any spl routine with a specific CPU priority level is highly machine dependent. With the exceptions of the splhigh and splnone routines, knowledge of the explicit bindings is not required to create new device drivers. You always use splhigh to mask (disable) all interrupts and splnone to unmask (enable) all interrupts. RETURN VALUES
Upon successful completion, each spl routine returns an integer value that represents the CPU priority level that existed before it was changed by a call to the specified spl routine. EXAMPLE
The following code fragment shows the use of spl routines as part of a disk strategy routine: int s; . . . s = splbio(); /* Mask (disable) all disk interrupts */ . . . [Code to deal with data that can be modified by the disk interrupt code] . . . splx(s); /* Restore CPU priority to what it was */ spl(9r)
All times are GMT -4. The time now is 01:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy