- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: High CPU usage when using getch ()
Operating System - Tru64 Unix
1755647
Members
2980
Online
108837
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2003 06:45 AM
тАО04-21-2003 06:45 AM
High CPU usage when using getch ()
Hi All,
Our application is developed in C/Sybase and running under Tru64 5.1a.
Our screens are developed using Unix Curses.
There is a call to getch () with in do ... while loop.
If there is no user input for approximately about 2hrs, the process started taking more than 90% of CPU.
What could be the corrective action?
Is it possible to set timeout? Please note that the mode set is cbreak.
The speedy response will be highly appreciated.
Thank you,
Dakshin
Our application is developed in C/Sybase and running under Tru64 5.1a.
Our screens are developed using Unix Curses.
There is a call to getch () with in do ... while loop.
If there is no user input for approximately about 2hrs, the process started taking more than 90% of CPU.
What could be the corrective action?
Is it possible to set timeout? Please note that the mode set is cbreak.
The speedy response will be highly appreciated.
Thank you,
Dakshin
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2003 04:22 AM
тАО04-22-2003 04:22 AM
Re: High CPU usage when using getch ()
Dakshin,
You'd need more information.
I would grab dcpi from here:
http://h30097.www3.hp.com/dcpi/
...and use it to keep an eye on the application. There are docs on that site.
You could also try connecting to the process with ladebug's -pid option, doing ^C and t.
truss and trace also have the ability to attach to a running process.
You'd need more information.
I would grab dcpi from here:
http://h30097.www3.hp.com/dcpi/
...and use it to keep an eye on the application. There are docs on that site.
You could also try connecting to the process with ladebug's -pid option, doing ^C and t.
truss and trace also have the ability to attach to a running process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 05:58 AM
тАО04-23-2003 05:58 AM
Re: High CPU usage when using getch ()
First doublecheck your program maybe the cbreak mode is not active consuming cpu usage.
Insert a sleep() in front of the getch() command.
Try kdbx -k /vmunix /dev/mem
(kdbx) set $PID=
(kdbx) tstack
so have a look onto the stack. may it gives you a clue what is going on.
Insert a sleep() in front of the getch() command.
Try kdbx -k /vmunix /dev/mem
(kdbx) set $PID=
(kdbx) tstack
so have a look onto the stack. may it gives you a clue what is going on.
Help() { FirstReadManual(urgently); Go_to_it;; }
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP