代码搜索:Threads
找到约 7,387 项符合「Threads」的源代码
代码结果 7,387
www.eeworm.com/read/252364/4409352
java serialnumberchecker.java
//: c13:SerialNumberChecker.java
// Operations that may seem safe are not,
// when threads are present.
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyrigh
www.eeworm.com/read/392996/8316199
std test.0.std
First-Come First-Served (FCFS) scheduling
Starting at Ticks: total 10
Queuing threads.
Queuing thread threadA at Time 10, priority 0
Queuing thread threadB at Time 20, priority 0
Queuing thread thread
www.eeworm.com/read/172888/9683372
h unpthread.h
/* Our own header for the programs that use threads.
Include this file, instead of "unp.h". */
#ifndef __unp_pthread_h
#define __unp_pthread_h
#include "unp.h"
void Pthread_create(pthrea
www.eeworm.com/read/270146/11046620
c ex1.c
/* Creates two threads, one printing 10000 "a"s, the other printing
10000 "b"s.
Illustrates: thread creation, thread joining. */
#include
#include
#include
#incl
www.eeworm.com/read/106368/15638648
c async_io.c
//
// This file is part of the C++ Threads library.
//
// Copyright (C) 2001 Orn E. Hansen
//
#include "io.h"
#include "signal_num.h"
#include "sig_handler.h"
#include
#include
www.eeworm.com/read/100019/15887952
c consumer.c
#define __THREADS_MAIN
#include
#include
extern "C" {
# include
};
cond t_control;
mutex t_link;
string s;
class producer : public pthread {
public:
producer()
www.eeworm.com/read/181916/9227358
hpuxi-acc
#
# qmake configuration for hpuxi-acc-32
#
# We define _POSIX_C_SOURCE to 199506L when using threads, therefore
# we also need to redefine _HPUX_SOURCE.
# From pthread(3t):
# Some documentation will
www.eeworm.com/read/181916/9227388
hpuxi-acc-64
#
# qmake configuration for hpuxi-acc-64
#
# We define _POSIX_C_SOURCE to 199506L when using threads, therefore
# we also need to redefine _HPUX_SOURCE.
# From pthread(3t):
# Some documentation will
www.eeworm.com/read/181916/9227471
hpux-g++-64
#
# qmake configuration for hpux-g++-64
#
# We define _POSIX_C_SOURCE to 199506L when using threads,
# therefore we also need to redefine _HPUX_SOURCE.
#
MAKEFILE_GENERATOR = UNIX
TEMPLATE = app
CON