Abstract
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.
Article PDF
Similar content being viewed by others
References
Aschersleben, G., &Prinz, W. (1997). Delayed auditory feedback in synchronization.Journal of Motor Behavior,29, 35–46.
Cohen, M. M., &Massaro, D. W. (1994). Development and experi mentation with synthetic visible speech.Behavior Research Methods, Instruments, & Computers,26, 260–265.
Finney, S. A. (1997). Auditory feedback and musical keyboard performance.Music Perception,15, 153–174.
Finney, S. A. (1999).Disruptive effects of delayed auditory feed back on motor sequencing. Unpublished doctoral dissertation, Brown University.
Finney, S. A. (2001). FTAP: A Linux-based program for tapping and music experiments.Behavior Research Methods, Instruments, & Computers,33, 65–72.
Finney, S. A., & Warren, W. H. (2000).Delayed auditory feedback and rhythmic tapping: Evidence for a critical interval shift. Manuscript submitted for publication.
Hirsh, I. J. (1959). Auditory perception of temporal order.Journal of the Acoustical Society of America,31, 759–767.
MacInnes, W. J., &Taylor, T. L. (2001). Millisecond timing on PCs and Macs.Behavior Research Methods, Instruments, & Computers,33, 174–178.
Murrel, S., &Kowalski, T. (1980). A real-time satellite system based on UNIX.Behavior Research Methods & Instrumentation,12, 126–131.
Myors, B. (1998). A simple graphical techniquefor assessing timer accuracy of computer systems.Behavior Research Methods, Instruments, &Computers,30, 454–456.
Myors, B. (1999). Timing accuracy of PC programs running under DOS and Windows.Behavior Research Methods, Instruments, &Computers,31, 322–328.
Pavel, M. (1982). Introduction to UNIX.Behavior Research Methods & Instrumentation,14, 135–136.
Perlman, G. (1982). Experimental control programs for the UNIX operating system.Behavior Research Methods & Instrumentation,14, 417–421.
Ritchie, D. M., &Thompson, K. (1978). The UNIX time-sharing system.Bell System Technical Journal,57, 1905–1929.
Rubini, A. (2000, November). Making system calls from kernel space.Linux Magazine,2, 84–93.
Torvalds, L. (1999). The Linux edge. In C. DiBona, S. Ockman, & M. Stone (Eds.),Open sources: Voices from the open source revolution (pp. 65–70). Newton, MA: O’Reilly.
Ulrich, R., &Giray, M. (1989). Time resolution of clocks: Effects on reaction time measurement—good news for bad clocks.British Journal of Mathematical & Statistical Psychology,42, 1–12.
Wing, A. M. (1977). Perturbations of auditory feedback delay and the timing of movement.Journal of Experimental Psychology: Human Perception & Performance,3, 175–186.
Wing, A. M., &Kristofferson, A. B. (1973). The timing of interresponse intervals.Perception & Psychophysics,13, 455–460.
Author information
Authors and Affiliations
Corresponding author
Additional information
The program described here, FTAP, was written for my dissertation research at Brown University (Finney, 1999) and was originally implemented on a Silicon Graphics computer running the IRIX operating system.
Rights and permissions
About this article
Cite this article
Finney, S.A. Real-time data collection in Linux: A case study. Behavior Research Methods, Instruments, & Computers 33, 167–173 (2001). https://doi.org/10.3758/BF03195362
Received:
Accepted:
Issue Date:
DOI: https://doi.org/10.3758/BF03195362