07-23-2019
Sorry, I meant C and C++ (research shows that even modern Linux kernels are mostly written in C, not C++)
Thanks for catching that typo.
Edited:
... on motorcycle searching for a new Yuasa MF DIN 75 battery for my car ....
10 More Discussions You Might Find Interesting
1. Programming
hi all,
can anyone tell me some good site for the mutithreading tutorials, its application, and some code examples.
-sushil (2 Replies)
Discussion started by: shushilmore
2 Replies
2. Programming
I've been doing some reading lately about threading (Posix threads) and I'm really curious about a couple things that I've read. I'm not sure if many people here have threading experience, but I thought it would be nice to be able to discuss some questions about it.
(For the record, I did... (1 Reply)
Discussion started by: DreamWarrior
1 Replies
3. Programming
Hi,
I have written a code which will run a set of process using
fork.
I want to know from You how can i start another job when one of my job in my loop is completed
My code is
#include<stdio.h>
#include<ctype.h>
main() {
int pid,cid;
ChildProcess();
... (1 Reply)
Discussion started by: sureshraju_ma
1 Replies
4. Programming
Hi All,
Here's my question
I have a 385 MB file containing 5,000,000 records.
I need to read from the file and load into a table.
Initially i thought of doing it in a single thread (execution of a single program) but when calculated accounted 16 hours of time on a standard benchmark.
Hence... (5 Replies)
Discussion started by: matrixmadhan
5 Replies
5. Programming
I am not sure if multi threading is the correct term, but here is what I am trying to do. I have a while loop that displays the number 1, pauses, displays the number 2, pauses , displays the number 3 ad infinitum. It just keeps counting.
While the screen displays the sequence of numbers counting... (4 Replies)
Discussion started by: enuenu
4 Replies
6. Programming
Sir,
Can I call same function in the start routines of different Threads.
I have created two different threads....and wanna call same function from both threads....is it possible???
Also can I fork inside a thread??? (1 Reply)
Discussion started by: arunchaudhary19
1 Replies
7. Programming
Hi, If we create 10 threads to invoke runQuery method at same time, Will queryProcessor will be overriden sometime or 10 different copies will be created?
We are not using any sunchronzation mechnism in runQuery(). so there is not gurantee on QueryProcessor class variables right OR each 10... (1 Reply)
Discussion started by: jramesh1
1 Replies
8. Programming
In this piece i implemented the gossip method. The first thread is invoked from inside the (msg is first sent from node -1 to 0 from main()) and the other threads are invoked from inside of the thread function itself. I used two mutexes and a condition variable to control the synchronization. ... (4 Replies)
Discussion started by: saman_glorious
4 Replies
9. UNIX for Dummies Questions & Answers
Hi, I am trying to get my head round Multi Threading and I have a few queries to try and clear up my confusion
Q1. Is multi threading a hardware / chip level concept, an OS level or an application level concept ? I am trying to work out where SMT architecture fits in.
Q2. What's the multi... (3 Replies)
Discussion started by: jimthompson
3 Replies
10. UNIX for Beginners Questions & Answers
Hi,
Can we apply multi threading in Unix. I am using bash shell.
We have a generic script to load the data to table based on file input. For each file there is an individual table to load.
For each file found in directory I want to load the data in parallel to target table using
... (3 Replies)
Discussion started by: vedanta
3 Replies
LEARN ABOUT DEBIAN
wmbattery
WMBATTERY(1x) WMBATTERY(1x)
NAME
wmbattery - dockable battery monitor
SYNOPSIS
wmbattery [options]
DESCRIPTION
wmbattery is a battery monitor. It is used to visually display the system's battery status.
wmbattery can get battery information using HAL, APM, ACPI, or the SPIC controller in some Sony laptops. You need to build your kernel with
support for at least one of these for the program to work. wmbattery is dockable using WindowMaker and AfterStep window managers; under
other window managers wmbattery appears as a nicely-sized 64x64 application.
wmbattery displays the status of your laptop's battery in a small icon. This includes if it is plugged in, if the battery is charging, how
many minutes of battery life remain, battery life remaining (with both a percentage and a graph), and battery status (high - green, low -
yellow, or critical - red).
ELEMENTS OF THE DISPLAY
The wmbattery display consists of these elements:
dial The large dial at the top of the display shows battery life remaining.
time display
The time display, right under and in the middle of the dial, shows how many hours and minutes of battery life is estimated to remain
at the current rate of use.
If ACPI is used and battery is charging, the time display will instead show a countdown (starting with a minus sign) of how many
hours and minutes it is estimated to take until the battery is fully charged.
power cord
The small icon of a power cord plug, in the bottom left, tells if the laptop is plugged into wall power. If so, it will be lit.
charging indicator
The lightning bolt icon, to the right of the plug, tells if the battery is being charged. If so it will be lit and will connect the
plug to the battery.
battery icon
The battery icon, to the right of the lighting bolt, shows the percentage of battery time. If the battery is removed the icon will
be dimmed. If the computer is low on power the battery will turn yellow; if the computer is critically low on power and about to die
because of it, it will turn red.
OPTIONS
-h Display list of command-line options.
-w secs
Pause this many seconds between updates.
-d display
Use the designated X display.
-g +x+y
Specify geometry. This specifies position, not size.
-b battnum
Display the given battery. Only of use with the HAL or ACPI interfaces on systems with more than one battery. The default is to dis-
play the first battery found.
-l percent
Set the percentage at which the battery is considered to be running low. By default, this percentage is determined automaticall, and
you shouldn't need to set it. If you set this, you should probably also set the -c switch.
-c percent
Set the percentage at which the battery is considered to be critically low. By default, this percentage is determined automati-
cally, and you shouldn't need to set it. If you set this, you should probably also set the -l switch.
-e wmbattery contains code for estimating the time remaining before discharge, and until full charge, and this code is used if no other
source of this informaton is available. This switch makes wmbattery use its time estimation code even if some other estimate is
available.
-s granularity
Ignore fluctuations less than the specified granularity percent when estimating time. (Implies -e)
-a file.au
Play the specified au file (by sending it to /dev/audio) when the battery is low.
AUTHOR
Joey Hess <joey@kitenet.net>
WMBATTERY(1x)