Is threading the right solution for this challenge?



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

.



Relevant Pages

  • Re: Is threading the right solution for this challenge?
    ... A typical screen "refresh" could take up to 10-15 ... the display thread (since it is only inquiring there is no danger ... interrupt itself to check for user input and react to it. ... In ACCEPT with TIMEOUT, what happens if the user was in the process of ...
    (comp.lang.cobol)
  • Re: best way to tackle issue with writing Data, Appending Data and Rea
    ... data that I have read from my database and the two are related. ... would help me in my display of data in a grid. ... Read user input and store user input and DataRow to a file. ... display user input and data row in a DataGrid. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Displaying forms
    ... Form1 is displayed and at some point, based on user input,I want to hide Form 1, switch to Form 2, display it and run the only procedure contained in it then unload it and return to Form 1 and make it visible and continue processing. ... There is no user input on Form2, only a label with fixed data. ...
    (microsoft.public.vb.general.discussion)
  • Re: Is threading the right solution for this challenge?
    ... Have a continually refreshing display screen that also ... responds to user input. ... to keep console I/O consistent. ...
    (comp.lang.cobol)
  • Re: Best practice for inserting new DataRows with lots of not nul
    ... The not null-constraint enforces a user input. ... >> Don't add the row to the member table until the user hits the save button. ... > proper input, it must be added to the table beforehand, because all the ... > textboxes (used for display and editing) are bound to that DataTable. ...
    (microsoft.public.dotnet.framework.adonet)