home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!elroy.jpl.nasa.gov!llyene!puente!john
- From: john@pluto.Jpl.Nasa.Gov (John R Veregge)
- Subject: Xt and CPU usage
- Message-ID: <1992Dec29.044104.19377@llyene.jpl.nasa.gov>
- Sender: news@llyene.jpl.nasa.gov
- Nntp-Posting-Host: puente.jpl.nasa.gov
- Reply-To: john@pluto.Jpl.Nasa.Gov
- Organization: Jet Propulsion Laboratory, Pasadena CA
- Date: Tue, 29 Dec 1992 04:41:04 GMT
- Lines: 22
-
- We have developed several large Motif applications that are complete CPU
- hogs and I don't know why.
-
- Each application has 300 to 500 XtCreateWidget() and 8 XtAppCreateShell()
- calls. These calls are all made before XtAppMainLoop() is called. Widgets
- are not destroyed until the application exits.
-
- Each application is driven by both the GUI and serialized data using
- XtInputCallbackProc's.
-
- We run 2 to 4 application on a workstation.
-
- 2 applications will put CPU usage of a Sparc 2 at 97%, even when
- completely idle with no serialized data input and no X events (GUI input).
-
- Can anyone tell me (1) Why? and (2) How can I fix (optimize) this?
- ______________________________
-
- John R Veregge
- Jet Propulsion Laboratory
- Calif Institute of Technology
- john@pluto.triton.jpl.nasa.gov
-