| | |
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: 166 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C
adobe ansi api array arrays bash binarysearch centimeter char convert copyanyfile copypdffile cprogramme createcopyoffile createprocess() csyntax directory drawing dynamic executable fflush file fork frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hardware highest homework i/o inches infiniteloop initialization interest km lazy linked linkedlist linux linuxsegmentationfault list locate logical_drives match matrix meter microsoft motherboard multi mysql open opendocumentformat opensource owf pattern pdf performance pointer pointers posix power problem probleminc program programming pyramidusingturboccodes read recursion recv repetition scanf scheduling segmentationfault send shape socketprograming spoonfeeding stack standard strchr string strings structures student suggestions system systemcall test testautomation unix user visualstudio voidmain() wab win32 win32api windows.h





