Is threading the right solution for this challenge?
- From: "Chris" <ctaliercio@xxxxxxxxx>
- Date: 1 May 2006 09:14:43 -0700
Compiler: MF SE 4.2 SP2
Platform: HP-UX 11i
Challenge: Have a continually refreshing display screen that also
responds to user input.
I had been considering using ACCEPT with a TIMEOUT clause and
refreshing after each time out, but that does not seem to be the
optimal solution here. In theory, this would give me a sluggish
application. Either the user would be waiting on the compilation of
display data, or the display would become "stale" while processing user
input.
I'm thinking that this is a prime candidate for me to tackle my first
threaded application. I figure I can run the user input interface in
one thread, whil running the continually updating output display in
another thread.
Since I have ZERO experience in this arena, I wanted to throw it out
there for the masses and see what everyone thought.
In the meantime I'll be wading through the MF documentation on writing
threaded applications and try to discern what I can. What is the
typical method when designing a threaded application? Do I start by
creating the two individual applications and then work toward linking
them together, or are there other considerations?
Of course - if anyone has any samples that they'd like to share, I
would love to have a look. It's always nice to see what others are
doing to accomplish similar tasks.
Thanks in advance for any/all feedback.
Chris
.
- Follow-Ups:
- Re: Is threading the right solution for this challenge?
- From: Michael Wojcik
- Re: Is threading the right solution for this challenge?
- From: Oliver Wong
- Re: Is threading the right solution for this challenge?
- Prev by Date: Re: Jesus breaking the law was Re: US Presidents; an outside view WAS: Any comments? (Evolution - was Answers to Pete)
- Next by Date: OT: Re: Jesus breaking the law was Re: US Presidents; an outside view WAS: Any comments? (Evolution - was Answers to Pete)
- Previous by thread: Re: IBM file status 97 (was: Prodcuing an output file only onFriday?
- Next by thread: Re: Is threading the right solution for this challenge?
- Index(es):
Relevant Pages
|