Search Results

Search: Posts Made By: dophine
Forum: Programming 08-12-2008
16,457
Posted By dophine
my colleague told me about it. I found redhat...
my colleague told me about it. I found redhat provides a patch. I hope it can solve it.
Forum: Programming 08-08-2008
16,457
Posted By dophine
OS: red hat 4 kernel: 2.6.18-92.el5PAE CPU:...
OS: red hat 4
kernel: 2.6.18-92.el5PAE
CPU: Intel(R) Xeon(R) CPU X7350 @ 2.93GHz
16 cores.

The magic number 4389 is my concern. It occurs every time when this problem arises....
Forum: Programming 08-06-2008
16,457
Posted By dophine
I have checked it. It always returns 0. the...
I have checked it. It always returns 0.
the reason why I said it may be the problem of multi-core is I found this website
linux-kernel - gettimeofday() jumping into the future...
Forum: Programming 08-05-2008
16,457
Posted By dophine
red hat in a multi-cores platform. it said...
red hat in a multi-cores platform.

it said invalid conversion from `void*' to `timezone*'.
if I change to gettimeofday(&cur, (timezone *)0); it said "expected primary-expression before ')' token"
Forum: Programming 08-04-2008
16,457
Posted By dophine
just forget this. As I expect the time...
just forget this.



As I expect the time does not go back or forward by more 1 second, the micro second part is not my concern. the same result occurs suing subtraction directly. So I suspect...
Forum: Programming 08-03-2008
16,457
Posted By dophine
Sorry, I think it is misleading. the function I...
Sorry, I think it is misleading. the function I used in Main is stardard function difftime, not my own function timediff.
Forum: Programming 08-03-2008
16,457
Posted By dophine
let us take this...
let us take this "Big:1217489802.1217489802,1217485404.813903,4398.000000" as an example.
1217489802-1217485404=4398

so, there are some problems for the difftime function?
Forum: Programming 08-01-2008
16,457
Posted By dophine
Thank you first # define timerisset(tvp) ...
Thank you first


# define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
# define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0)
# define timercmp(a, b, CMP) ...
Forum: Programming 07-31-2008
16,457
Posted By dophine
the problem of gettimeofday
Hi all,

I just wrote a small problem to check gettimeofday in a multi-cores environment.



int timediff(double fTimeQvs, double fTimeTcp)
{
int iTimeDiff;
iTimeDiff =...
29,734
Posted By dophine
then I have another issue. how to assign an array...
then I have another issue. how to assign an array value to another one i.e. clone?
29,734
Posted By dophine
so the array seems act as a globle...
so the array seems act as a globle variable,right?
if a function is called several times in the script, then I need to store it in another array before calling it again, right?
29,734
Posted By dophine
bash shell script
bash shell script
29,734
Posted By dophine
function return array
Hi all

I would like to know if there is a way to return an array for a function.
As I know function can return all the contents in an array, I want to return an array type.
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 08:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy