Real-time data collection in Linux: A case study

被引:31
作者
Finney, SA [1 ]
机构
[1] Ohio State Univ, Dept Psychol, Columbus, OH 43210 USA
来源
BEHAVIOR RESEARCH METHODS INSTRUMENTS & COMPUTERS | 2001年 / 33卷 / 02期
关键词
D O I
10.3758/BF03195362
中图分类号
B841 [心理学研究方法];
学科分类号
040201 ;
摘要
Multiuser UNIX-like operating systems such as Linux are often considered unsuitable for real-time data collection because of the potential for indeterminate timing latencies resulting from preemptive scheduling. In this paper, Linux is shown to be fully adequate for precisely controlled programming with millisecond resolution or better. The Linux system calls that subserve such timing control are described and tested and then utilized in a MIDI-based program for tapping and music performance experiments. The timing of this program, including data input and output, is shown to be accurate at the millisecond level. This demonstrates that Linux, with proper programming, is suitable for real-time experiment software. In addition, the detailed description and test of both the operating system facilities and the application program itself may serve as a model for publicly documenting programming methods and software performance on other operating systems.
引用
收藏
页码:167 / 173
页数:7
相关论文
共 19 条
[11]   A simple graphical technique for assessing timer accuracy of computer systems [J].
Myors, B .
BEHAVIOR RESEARCH METHODS INSTRUMENTS & COMPUTERS, 1998, 30 (03) :454-456
[12]   INTRODUCTION TO UNIX [J].
PAVEL, M .
BEHAVIOR RESEARCH METHODS & INSTRUMENTATION, 1982, 14 (02) :135-136
[13]   EXPERIMENTAL CONTROL PROGRAMS FOR THE UNIX OPERATING SYSTEM [J].
PERLMAN, G .
BEHAVIOR RESEARCH METHODS & INSTRUMENTATION, 1982, 14 (04) :417-421
[14]   UNIX TIME-SHARING SYSTEM [J].
RITCHIE, DM ;
THOMPSON, K .
BELL SYSTEM TECHNICAL JOURNAL, 1978, 57 (06) :1905-1929
[15]  
RUBINI A, 2000, LINUX MAGAZINE, V2, P84
[16]  
TORVALDS L, 1999, OPEN SOURCES VOICES, P65
[17]   TIME RESOLUTION OF CLOCKS - EFFECTS ON REACTION-TIME MEASUREMENT - GOOD-NEWS FOR BAD CLOCKS [J].
ULRICH, R ;
GIRAY, M .
BRITISH JOURNAL OF MATHEMATICAL & STATISTICAL PSYCHOLOGY, 1989, 42 :1-12
[18]   PERTURBATIONS OF AUDITORY-FEEDBACK DELAY AND TIMING OF MOVEMENT [J].
WING, AM .
JOURNAL OF EXPERIMENTAL PSYCHOLOGY-HUMAN PERCEPTION AND PERFORMANCE, 1977, 3 (02) :175-186
[19]   TIMING OF INTERRESPONSE INTERVALS [J].
WING, AM ;
KRISTOFFERSON, AB .
PERCEPTION & PSYCHOPHYSICS, 1973, 13 (03) :455-460