代码搜索结果
找到约 10,000 项符合
的代码
xiancheng.txt
name:testThread.py
import threading
import time
import random
class PrintThread(threading.Thread):
"""欢您的使用
你还好吗"""
def __init__(self,threadname):
threading.Thread.__i
hex.h
#ifndef CRYPTOPP_HEX_H
#define CRYPTOPP_HEX_H
#include "cryptlib.h"
#include "filters.h"
NAMESPACE_BEGIN(CryptoPP)
class HexEncoder : public Filter
{
public:
HexEncoder(BufferedTransfor
blum512.dat
3081AF024100C9D571775CD06D78E214766914D6D9C5C42E6381A412548765F926ACE368B3758D20241101AD2E035A70CC3A12F7629E8181D0DAC3B62DBA45A5EF21D3C25B59022100F2DE9CF99D61CDAB84A8276F983FC2065BC89DA0C343A3ED0C1F01
6.txt
python线程HelloWorld
改变num的值可以控制线程的数量
弄它几千个不是问题
呵呵
每个线程启动后会随机睡眠1-3秒
醒来后结束
[code]
#!/usr/bin/env python
import threading
import time
import random
class PrintThread(threading.Thread):
rah.mdl
Model {
Name "rah"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes o
marss.cpp
// MARS S-Box
#include "pch.h"
#include "mars.h"
NAMESPACE_BEGIN(CryptoPP)
const word32 MARS::Sbox[512] = {
0x09d0c479, 0x28c8ffe0, 0x84aa6c39, 0x9dad7287,
0x7dff9be3, 0xd4268361, 0xc
setils.m
% SETILS - define ILS block parameters
%
% This routine can be used to create a set of standard block-
% parameters for the ILS radio-navigation model, taking into
% account all relevant fixed ge
5.txt
我们经常会采用生产者/消费者关系的两个线程来处理一个共享缓冲区的数据。例如一个生产者线程接受用户数据放入一个共享缓冲区里,等待一个消费者线程对数据取出处理。但是如果缓冲区的太小而生产者和消费者两个异步线程的速度不同时,容易出现一个线程等待另一个情况。为了尽可能的缩短共享资源并以相同速度工作的各线程的等待时间,我们可以使用一个“队列”来提供额外的缓冲区。
创建一个“队列”对象
...
actrload.m
%----------------------------------------------------------------
% ACTRLOAD.M loads the parameters (state-space matrices) for the
% cable and actuator models of the `Beaver' aircraft. These para-
gf2n.h
#ifndef CRYPTOPP_GF2N_H
#define CRYPTOPP_GF2N_H
#include "cryptlib.h"
#include "misc.h"
#include "algebra.h"
#include
NAMESPACE_BEGIN(CryptoPP)
class PolynomialMod2
{
public: