| | |
Display in C for multiple threads
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Oct 2009
Posts: 1
Reputation:
Solved Threads: 0
Hello,
I need a pointer on how exactly I can use part of the terminal for inpit and another part for output.
Example
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,
I need a pointer on how exactly I can use part of the terminal for inpit and another part for output.
Example
C Syntax (Toggle Plain Text)
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.
0
#2 Nov 3rd, 2009
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.
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.
![]() |
Similar Threads
- Is it safe to have multiple threads add to or subtract from a quantity? (Computer Science)
- Question on interrupting threads (Java)
- how to create Multiple threads ??? problem ??? (C++)
- Help multiple threads accessing buffer structure (Java)
- How will display multiple table records in crystal report (VB.NET)
- Error in display multiple table record in datagrid (VB.NET)
- Display Multiple Rows From Access Database (Visual Basic 4 / 5 / 6)
Other Threads in the C Forum
- Previous Thread: Fraction to float
- Next Thread: finding the middle element of the list with 0(n)
Views: 165 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C
#include * .net array arrays asterisks binarysearch calculate changingto char cm command copyimagefile cprogramme creafecopyofanytypeoffileinc database directory dynamic execv fflush file fork forloop framework functions getlasterror givemetehcodez grade graphics gtkwinlinux hacking histogram homework inches include incrementoperators input iso kernel keyboard km lazy linked linkedlist linux list lists locate logical_drives looping loopinsideloop. lowest matrix microsoft motherboard mqqueue mysql number opendocumentformat opensource overwrite owf pattern pdf performance pointer pointers posix problem probleminc process program programming radix recursion recv research reversing scanf scripting segmentationfault sequential socket socketprograming spoonfeeding standard string structures student systemcall testing threads turboc unix user variable voidmain() wab whythiscodecausesegmentationfault windowsapi





