[comp.windows.x] Shared Memory and Widgets

hashem@mars.jpl.nasa.gov (Basil Hashem) (06/12/90)

Dear xperts,

Any light you can shed on this topic would be most appreciated.  I am writing
a toolkit-based application which creates *thousands* of widgets over the
lifetime of the program.  This client will only create widgets and never
do an XtDestroyWidget().  It will simply XtUnmanageChildren() and then
re-XtManageChildren(), i.e. it will display only certain groups of widgets
at a time.

To complicate matters, I need approximately 12 instances of this program to
run simultaneously.  One quickly realizes the need and advantages of using a
shared memory architecture for this kind of application.

What I am trying to do is pre-allocate (create) all the needed widgets in the
shared memory segment, then, have each instance of the program attach to that
segment and instantiate by Managing and Realizing its own "copy" of the
widgets.

Has anyone written or have examples of using widgets under any shared memory
scheme?  I've tried writing some short programs without success.

Any help will be useful.

Thanks,
                "WOOOSH!  If they only knew what I was up to."
                                 Basil Hashem
                            hashem@mars.jpl.nasa.gov
            Jet Propulsion Laboratory     La Canada Flintridge, CA

ben@hpcvlx.cv.hp.com (Benjamin Ellsworth) (06/12/90)

I can't imagine how you could use shared memory segments with either
Xhp or Motif widgets.

Can't you just have one application thread with up to 12 connections?

---

Ben