home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / 20592 < prev    next >
Encoding:
Text File  |  1992-12-29  |  1.2 KB  |  35 lines

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