Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 154809 Details for
Bug 239372
automount consumes excessive CPU time
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
timedwait2.c
timedwait2.c (text/plain), 792 bytes, created by
IBM Bug Proxy
on 2007-05-16 12:01:18 UTC
(
hide
)
Description:
timedwait2.c
Filename:
MIME Type:
Creator:
IBM Bug Proxy
Created:
2007-05-16 12:01:18 UTC
Size:
792 bytes
patch
obsolete
>#include <stdio.h> >#include <stdlib.h> >#include <pthread.h> > >main() >{ > int i, err; > struct timespec wait; > long before, after; > > pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; > pthread_cond_t cond = PTHREAD_COND_INITIALIZER; > > err = pthread_mutex_lock(&mutex); > if (err) { > printf("pthread_mutex_lock returned %d\n", err); > exit(1); > } > before = time(NULL); > printf("Time before = %ld\n", before); > for (i=0; i<10; i++) { > wait.tv_sec = time(NULL) + 1; > wait.tv_nsec = 0; > err = pthread_cond_timedwait(&cond, &mutex, &wait); > if (err) { > printf("pthread_cond_timedwait returned %d\n", err); > } else { > printf("i = %d\t pthread_cond_timedwait success\n", i); > } > } > after = time(NULL); >// printf("Time after = %ld\n", after); > printf("Difference = %ld\n", after - before); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 239372
: 154809 |
154898
|
154970