That is a requirement for my project which involves calculating the time taken for my logic.
Type: Posts; User: muthus
That is a requirement for my project which involves calculating the time taken for my logic.
Yes, but I need it for cache memory and not streams
I am writing a C program in which I need to flush my memory. I would like know if there is any UNIX system command to flush memory cache. Thanks in advance.
Hello, thanks for all your suggestions. I am using Linux. I will think about using POSIX.
Hello,
I want to find the difference between two times in C. I am using difftime to calculate the difference but it appears that the results are being returned in seconds. I need to get the exact...
Could do that but I have this specific requirement.
Hello,
I would like to extract only specific fields in a 'top' output. For example, I want to just find the percent time the system is idle, available free memory, etc. Is there a way to do this....
Hello,
I am using POSIX threads in my C program. The program reads integer values from a file to process. I get a Segmentation fault (core dumped) error during execution when I have more than 6...
Agree. Will do some investigation. Thanks.
Hello,
I am using POSIX threads in my C program. The program reads integer values from a file to process. I get a Segmentation fault (core dumped) error during execution when I have more than 6...
Got you. Thanks a lot.
I am seeing a different one. I see the one in /usr/bin. But, I worked around this problem by directing the output to a file different that a.out
I am compiling a simple 'hello world' the program using the following command
gcc filename.c
I made sure I have write permissions on a.out and the directory. I have each source in a separate...
I am deleting it using the rm command. I make sure there is is not there before re-compiling it. But the new a.out file that gets created still shows the output from a different program I ran earlier.
yes. for any program I write, I get the same old output of a different program even after attempting to
1. deleting a.out
2.renaming the file
3.rebooting the system.
Hello thanks but I have tried both options, without any luck
Hello,
I am writing a C program on Ubuntu Linux. I compile using the gcc compiler. I was making changes and compiling the program and a.out was reflecting the new changes. After a few hours, I am...