Tcl Source Code

View Ticket
Login
Ticket UUID: 218255
Title: Tcl_DoOneEvent problems with Posix-Threads
Type: Bug Created on: 2000-10-26 00:55:06
Submitter: nobody Assigned to: nobody
Subsystem: 49. Threading Severity:
Priority: 2 Last modified: 2000-10-26 08:17:56
Status: Closed Closed by: welch
Resolution: Fixed Closed on: 2000-10-26 01:17:56
Version: obsolete: 8.2
Description:
OriginalBugID: 2918 Bug
Version: 8.2
SubmitDate: '1999-09-27'
LastModified: '1999-11-11'
Severity: SER
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Linux-SuSE
Machine: Other
FixedDate: '2000-10-25'
ClosedDate: '1999-11-11'


Name: Christian Walling

ReproducibleScript:
for ( ; ; ) {
  Tcl_DoOneEvent(0);
}

ObservedBehavior:
The given Mainloop works fine in a normal C++ Program, but if it is run
as a seperate thread (i.e with pthread_create) the CPU-Load is at about
98% (Pentium II 350 MHz).

DesiredBehavior:
Is there any workaround for this problem ?

Interpreters are designed to work one/thread.  This appears to
try and split one interp in two threads. 
-- 11/11/1999 hobbs