代码搜索:Threads

找到约 7,387 项符合「Threads」的源代码

代码结果 7,387
www.eeworm.com/read/127767/14336608

txt e216. controlling access to an object.txt

This example demonstrates how to protect access to an object using a permission. Only threads with the required permission can access the object. // Create the object that requires protection
www.eeworm.com/read/222777/14673991

c 07_sample_system.c

/* 07_sample_system.c Create two threads, and one mutex. Use an array for the thread stacks. The mutex protects the critical sections. */ /******************************************
www.eeworm.com/read/119982/14815009

cpp simple_thread.cpp

#include // This is a child thread procedure that waits for a semaphore, // holds the semaphore for five seconds, and releases the semaphore. // Threads that cannot get semaphores w
www.eeworm.com/read/119982/14815514

cpp create_semaphore.cpp

#include // This is a child thread procedure that waits for a semaphore, // holds the semaphore for five seconds, and releases the semaphore. // Threads that cannot get semaphores w
www.eeworm.com/read/117262/14933203

java holdintegersynchronized.java

// Fig. 15.6: HoldIntegerSynchronized.java // Definition of class HoldIntegerSynchronized that // uses thread synchronization to ensure that both // threads access sharedInt at the proper times. i
www.eeworm.com/read/115182/15023927

java threaddemo.java

/** * Demo how threads in Java work ***/ public class ThreadDemo extends Thread { private int startingNumber=0; public ThreadDemo(int startingNumber) { this.startingNumber=startingNumber;
www.eeworm.com/read/214672/15092221

h synch.h

// synch.h // Data structures for synchronizing threads. // // Three kinds of synchronization are defined here: semaphores, // locks, and condition variables. // // Note that all the synchronization
www.eeworm.com/read/214672/15092224

cc synch.cc

// synch.cc // Routines for synchronizing threads. Three kinds of // synchronization routines are defined here: semaphores, locks // and condition variables. // // Any implementation of a synchr
www.eeworm.com/read/206867/15286981

cpp simple_thread.cpp

#include // This is a child thread procedure that waits for a semaphore, // holds the semaphore for five seconds, and releases the semaphore. // Threads that cannot get semaphores w
www.eeworm.com/read/206867/15287487

cpp create_semaphore.cpp

#include // This is a child thread procedure that waits for a semaphore, // holds the semaphore for five seconds, and releases the semaphore. // Threads that cannot get semaphores w