I take this question of the The Linux Programming Interface: A Linux and Unix System Programming page 652 exercise 30.1
I want someone to explain the under line statement because it sounds complex to me couldn't understand anything
30-1 Modify the program (thread_incr.c) so that each loop in... (3 Replies)
hello to all
i want to use multithreading to my UDP broadcast server client program. will anyone help me by proving C code. i am working in fedora. also my requirement is POSIX compliance.please help me..... (6 Replies)
I receive the following warning messages on a very new machine which has FreeBSD 8.1 x64 installed on it:
Interrupt storm detected on "irq 20" throttling interrupt source
It is unclear what this means and what its origins are (motherboard? CPU? RAM?).
I can start the desktop and the message is... (4 Replies)
Situation:
i have multiple pthread_create calls like this:
pthread_create(...., ThreadFunc1,.....);
pthread_create(...., ThreadFunc2,.....);
.
.
which i am using to create multiple threads.All the "ThreadFunc<i>" functions are actually calling same function "Receive" of a class using same... (3 Replies)
Hi
I need to insert 1million records into MySQL database, but it is taking lot of time as there is no bulk insert support.
I want to spawn 10 processes which will insert 100k records each parallely.
Can somebody help me with a example program to execute this task through shell scripting. (5 Replies)
Hi all, I have a query about multithreading. What I would like to do is, at the start of my main update() function, start a couple of threads in parallel, once they are all complete carry on with my main update function.
void update() {
thread1->update(); // fluid solver
... (3 Replies)
:confused:
Hi!
I have created a Multhreaded Application in Pro*C (using pthreads) with about 5 Threads running simultaneously. The Application is basically to Update a Centralized Table in Oracle, which updates different rows in the Table (Each Thread updates different rows!). The... (16 Replies)
ost::Time(3) Library Functions Manual ost::Time(3)NAME
ost::Time -
The Time class uses a integer representation of the current time.
SYNOPSIS
#include <numbers.h>
Inherited by ost::Datetime.
Public Member Functions
Time (time_t tm)
Time (tm *dt)
Time (char *str, size_t size=0)
Time (int hour, int minute, int second)
Time ()
virtual ~Time ()
long getValue (void) const
int getHour (void) const
int getMinute (void) const
int getSecond (void) const
char * getTime (char *buffer) const
time_t getTime (void) const
tm * getTime (tm *buf) const
void setTime (char *str, size_t size=0)
bool isValid (void) const
operator long ()
String operator() () const
Time & operator++ ()
Time & operator-- ()
Time & operator+= (const int val)
Time & operator-= (const int val)
int operator== (const Time &time)
int operator!= (const Time &time)
int operator< (const Time &time)
int operator<= (const Time &time)
int operator> (const Time &time)
int operator>= (const Time &time)
bool operator! () const
Protected Member Functions
void toSeconds (int hour, int minute, int second)
void fromSeconds (char *buf) const
virtual void update (void)
Protected Attributes
long seconds
Friends
Time operator+ (const Time &time1, const Time &time2)
Time operator- (const Time &time1, const Time &time2)
Time operator+ (const Time &time, const int val)
Time operator- (const Time &time, const int val)
Time operator+ (const int val, const Time &time)
Time operator- (const int val, const Time &time)
Detailed Description
The Time class uses a integer representation of the current time.
This is then manipulated in several forms and may be exported as needed.
Author:
Marcelo Dalmas mad@brasmap.com.br Integer based time class.
Constructor & Destructor Documentation
ost::Time::Time (time_ttm)
ost::Time::Time (tm *dt)
ost::Time::Time (char *str, size_tsize = 0)
ost::Time::Time (inthour, intminute, intsecond)
ost::Time::Time ()
virtual ost::Time::~Time () [virtual]
Member Function Documentation
void ost::Time::fromSeconds (char *buf) const [protected]
int ost::Time::getHour (void) const
int ost::Time::getMinute (void) const
int ost::Time::getSecond (void) const
char* ost::Time::getTime (char *buffer) const
time_t ost::Time::getTime (void) const
tm* ost::Time::getTime (tm *buf) const
long ost::Time::getValue (void) const
bool ost::Time::isValid (void) const
Reimplemented in ost::Datetime.
ost::Time::operator long () [inline]
bool ost::Time::operator! (void) const [inline]
Reimplemented in ost::Datetime.
int ost::Time::operator!= (const Time &time)
String ost::Time::operator() () const
Time& ost::Time::operator++ ()
Time& ost::Time::operator+= (const intval)
Time& ost::Time::operator-- ()
Time& ost::Time::operator-= (const intval)
int ost::Time::operator< (const Time &time)
int ost::Time::operator<= (const Time &time)
int ost::Time::operator== (const Time &time)
int ost::Time::operator> (const Time &time)
int ost::Time::operator>= (const Time &time)
void ost::Time::setTime (char *str, size_tsize = 0)
void ost::Time::toSeconds (inthour, intminute, intsecond) [protected]
virtual void ost::Time::update (void) [protected], [virtual]
Friends And Related Function Documentation
Time operator+ (const Time &time1, const Time &time2) [friend]
Time operator+ (const Time &time, const intval) [friend]
Time operator+ (const intval, const Time &time) [friend]
Time operator- (const Time &time1, const Time &time2) [friend]
Time operator- (const Time &time, const intval) [friend]
Time operator- (const intval, const Time &time) [friend]
Member Data Documentation
long ost::Time::seconds [protected]
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::Time(3)