R GUI - Threading and GUI Issues for R Luke Tierney School...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Threading and GUI Issues for R Luke Tierney School of Statistics University of Minnesota March 5, 2001 Contents 1 Introduction 2 2 Concurrency and Parallelism 2 3 Concurrency and Dynamic State 3 3.1 Options Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3.2 User Defined Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.3 Devices and Par Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.4 Standard Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3.5 The Context Stack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3.5.1 Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 4 GUI Events And Blocking IO 6 4.1 UNIX Issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4.2 Win32 Issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4.3 Classic MacOS Issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4.4 Implementations To Consider . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4.5 A Note On Java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4.6 A Strategy for GUI/IO Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4.7 A Sample Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 5 Threads and GUI’s 10 6 Threading Design Space 11 6.1 Parallelism Through HL Threads: The MXM Options . . . . . . . . . . . . . . . . . . . . . 12 6.2 Light-Weight Threads: The XMX Options . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 6.3 Multiple OS Threads Running One At A Time: MSS . . . . . . . . . . . . . . . . . . . . . 14 6.4 Variations on OS Threads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 6.5 SMS or MXS: Which To Choose? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 7 Light-Weight Thread Implementation 14 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
March 5, 2001 2 8 Other Issues 15 8.1 High-Level GUI Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 8.2 High-Level Thread Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 8.3 High-Level Streams Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 8.4 Completely Random Stuff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 1 Introduction This document collects some random thoughts on runtime issues relating to concurrency, threads, GUI’s and the like. Some of this is extracted from recent R-core email threads. I’ve tried to provide lots of references that might be of use. If anyone has suggestions of things to add please let me know. While intended mainly for R, I am hopeful that some of this will carry over to XLISP-STAT as well.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 20

R GUI - Threading and GUI Issues for R Luke Tierney School...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online