944,144 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 278
  • C RSS
Nov 3rd, 2009
0

Display in C for multiple threads

Expand Post »
Hello,

I need a pointer on how exactly I can use part of the terminal for inpit and another part for output.

Example

  1. Enter the next command> [my command] <other thread display some stuff>

Because I have a thread to display and a thread to read and I don't want to mix both outputs together.

Is there a way to do it in ANSI C/ posix ?

I just need a pointer to standard routines or library that I can use.

Thanks,
Last edited by chornox; Nov 3rd, 2009 at 1:22 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
chornox is offline Offline
1 posts
since Oct 2009
Nov 3rd, 2009
0
Re: Display in C for multiple threads
I dont think u can do that.
Its because the console is just a resource and the same resource cannot be shared by more than one process at a time.
When u are doing a read operation the console is reserved for that process and any write operation will only be executed when the read operation is complete and the resource is free.
Reputation Points: 121
Solved Threads: 61
Posting Pro in Training
dkalita is offline Offline
402 posts
since Sep 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Fraction to float
Next Thread in C Forum Timeline: finding the middle element of the list with 0(n)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC