代码搜索:Threads
找到约 7,387 项符合「Threads」的源代码
代码结果 7,387
www.eeworm.com/read/392997/7247737
cpp thread.cpp
// thread.cc
// Routines to manage threads. There are four main operations:
//
// Fork -- create a thread to run a procedure concurrently
// with the caller (this is done in two steps -- first
//
www.eeworm.com/read/458518/7295008
readme
Protothreads are extremely lightweight stackless threads designed for
severely memory constrained systems such as small embedded systems or
sensor network nodes. Protothreads can be used with or witho
www.eeworm.com/read/449651/7499067
java sharedcell1.java
// Show multiple threads modifying shared object.
public class SharedCell
{
public static void main( String args[] )
{
HoldIntegerSynchronized h = new HoldIntegerSynchronized();
Pr
www.eeworm.com/read/145545/12714394
java banking.java
package examples.threads;
/** A class to demonstrate wait and notify methods
*/
public class Banking {
/** The test method for the class
* @param args[0] Time in seconds for which
www.eeworm.com/read/145545/12714418
java repeatedmessage.java
package examples.threads;
/** A class to demonstrate why synchronized methods
* are needed by showing what can happen when they
* are not synchronized.
*/
public class RepeatedMessage ex
www.eeworm.com/read/145545/12714440
java bankaccount.java
package examples.threads;
/** A class to demonstrate wait and notify methods
*/
public class BankAccount {
private int balance = 0;
private boolean isOpen = true;
/** The method
www.eeworm.com/read/242863/12976758
c attributes.c
#include "thread.h"
namespace cpp_threads {
//
// attributes - constructor
//
// initialize the attribute structure with default values.
attributes::attributes()
{
Pthread *p = Pthre
www.eeworm.com/read/141545/13001990
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/141545/13003154
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/325023/13231689
java evengenerator.java
//: concurrency/EvenGenerator.java
// When threads collide.
public class EvenGenerator extends IntGenerator {
private int currentEvenValue = 0;
public int next() {
++currentEvenValue; /