First  |  Prev |  Next  |  Last
Pages: 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
RDTSC was: Re: faster gettimeofday?
Moi <root(a)> writes: On Sun, 07 Mar 2010 21:52:46 -0800, David Schwartz wrote: A few years ago, I did some experiments with rdtsc, and it seemed that its costs vary. On my home machine (a dual core x86) the rdtsc instruction itself took an additional 200-300 tics. The machine at work (a sing... 8 Mar 2010 18:41
pthread_mutex/ptheread_spinlocks & shared memory
Hello All, First of all,I am very thankful to all the members who helped me with my previous post on the same subject. I have a shared memory (in the form of the struct shown below )between 2 process, and a member of the struct (child_inst) is being updated by both the parent & child process. I use a mutex ... 11 Mar 2010 19:06
faster gettimeofday?
Hi all, I am developing a profiler, and in my tests, it seems most of time spent in the profiler is the gettimeofday() function. I have also used clock_gettime() function and gives same results. Is there any way to optimize the below piece of code more? Maybe another syscall I am missing or anything? static l... 11 Mar 2010 13:25
ANN: Seed7 Release 2010-03-07
Hello, I have released a new version of Seed7: seed7_05_20100307.tgz In the Seed7 programming language new statements and operators can be declared easily. Types are first class objects and therefore templates/generics need no special syntax. Object orientation is used when it brings advantages and not in plac... 7 Mar 2010 17:22
WinGDB - debugging remote Linux/Unix, MinGW/Cygwin, embedded systems under Visual Studio
Hello, WinGDB is an extension for Visual Studio IDE allowing to use GDB debugger. It can debug processes on remote machines running Linux (or other Unix systems) through SSH connection, Windows programs compiled under MinGW or Cygwin, and embedded ARM devices using OpenOCD. Please visit our site: http://www.wi... 7 Mar 2010 12:56
Monkey and a poet's work ?
Hi, I came across the 'Infinite Monkey Theorem'. I wonder how can a monkey hitting keys at random on a typewriter keyboard for an infinite amount of time will almost surely type a given text, such as the complete works of William Shakespeare ? And why was mo... 22 Mar 2010 19:13
#define _XOPEN_SOURCE 600 - where to define?
Yesterday I split one large C file and its header into a more manageable modular design consisting of 5 C files and headers. In my single C file approach it was simple, I defined _XOPEN_SOURCE at the top of the C file like this: #ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE 600 #endif Having split the... 7 Mar 2010 19:34
Job control concerning tcsetpgrp
int tcsetpgrp(int fildes, pid_t pgid_id) The situation is like this: Parent process ppid belongs to foreground process group, and it is associated with the session's controlling terminal which should be no more than one per session. Later ppid fork a child process cpid, make it process group leader of cpid, and c... 8 Mar 2010 10:48
Please help with this one-line sed
Hi, I am using a one-line sed script: sed -n -e 's/^.*HREF="\([^"]*\)".*>\(.*\)<\/[aA]>$/\1 "\2"/p to extract the URL-field and the description-fieled from the firefox bookmark-file: (Oh je, .... upon cut-and-paste I hope the google-editor is not inserting newlines.....) <DT><A HREF="http://en.wikiped... 9 Mar 2010 02:23
system calls
Glen Hermannsfeldt posted this in comp.lang.fortran: #include <stdio.h> int main() { printf("%d\n",system("ls | grep .")); } // gcc -D_GNU_SOURCE -Wall -Wextra rr1.c -o out Output seemed typical: $ ./out 9vx-0.12 9vx-0.12.tar.bz2 a2.c .... winter1.c~ z 0 Apparently, the zero is expecte... 26 Mar 2010 13:10
First  |  Prev |  Next  |  Last
Pages: 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38