Re: How to time a system call

2000-09-21 Thread Song Li
> > A friend asks me what will happen if more than one process trying to read > the stdin at the same time. There is no way to guarantee that any > particular keyboard input will be accepted by a particular process. how about using several psudo terminal? > Since a system call is atomic, this ma

different clocks in FreeBSD

2000-07-15 Thread Song Li
Hey, I want to get the accurate user-time and system-time used by a process whenever I want. My code will run inside the kernel. I try to use the getrusage from within the kernel, but the function didn't give right data. Then I try to read the p_uticks in the proc structure. But it seems that va

Re: different clocks in FreeBSD

2000-07-17 Thread Song Li
Could somebody give me suggestion? I believe many people know about this question. But I did not recieve any reply until now. If you think my question is not clear or can be solve by simply reading some man page/source code, please tell me. I am a newbie here. So please do not hesitate to give me

Fine time recording

2000-07-26 Thread Song Li
Is there any method to record the utime/stime of a process more accurately than one tick(defined in kernel as 1/128 second)? Do I have to write some code by myself? thanks! -Song To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Make a kernel in a different directory

2001-10-01 Thread Song Li
So what's the contents of the Makefile in the accf_http directory? On Mon, 1 Oct 2001, Zhihui Zhang wrote: > > I put the whole kernel code under /test by the following command: > > #cp -R /usr/src/sys /test > > My configuration file is under /test/sys/i386/conf. Then I follow > all the steps a