[plt-scheme] Ports in Thread

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Jul 28 23:46:54 EDT 2003

At 28 Jul 2003 19:55:47 +0000, Paulo Jorge de Oliveira Cantante de Matos wrote:
> If I set i/o ports in a thread thunk, the ports will only be valid in
> that thread, right? No other thread will be affected?

When you set `current-input-port', `current-output-port', and
`current-error-port', the change applies only to the current thread T
among the existing threads. However, threads created later by T will
"inherit" the changes, too.


Posted on the users mailing list.