Welcome![Sign In][Sign Up]
Location:
Search - 908

Search list

[WinSock-NDIS用ftp协议完成多线程断点续传的源码

Description:  各个线程任务分配是这样实现的。在开始下载时,文件平均分成若干块进行下载。如第一个线程一开始的任务是从文件的0位置开始下载一直到72908位置处。线程1每次下载一块数据后就要调整任务,如第一次下载了20800字节的数据,那么线程1的任务将改为:20800-72908。如此下去,直到任务为72908-72908时表示线程1完成了当前的下载任务。此时,线程1就分析各个线程的任务,找出任务最为繁忙的一个线程:如线程3:14816-218724。那么线程1就自动去调整任务,拿50%的任务来再次下载。周而复始直到各个线程都完成任务。不过这里有一点需要注意:为了避免重复下载部分数据,在调整任务的时候,起始的文件便移量必须加上接受缓冲器的字节数,因为如前面所举的列子来看。线程1和线程3在平衡负载的时候,线程正在下载数据,如果所剩的数据比接受缓冲器的大小还小,线程1和线程3的部分下载数据将会重复。   在调整任务和分析任务的时候,会发现一个问题。就是读取文件数据太过频繁。于是我用了一个数据结构。在下载文件的过程中始终打开配置文件,这样速度提高了很多。在文件下载完毕后关闭文件。-various threads assignment is achieved. At the beginning of the download, the paper divided into a number of pieces of the download. As a thread of a task is to start from the position paper of 0 to start the download has 72,908 locations Department. Thread a download each one will have to adjust the data tasks, such as the first downloaded 20,800 gigabytes of data, then threaded a task will be re :20800 - 72908. This situation continues until the mandate of 72908-72908 said threaded a completion of the current mandate of the download. At this point, a thread on the analysis of the various threads of tasks, the most heavy task to find a thread : If 3:14816-218724 threads. Then a threaded automatically adjust the mandate, with 50% of the tasks to be downloaded again. Thread cycle until all
Platform: | Size: 96233 | Author: 屠理峰 | Hits:

[assembly language908

Description: 空气净化器的控制.包含定时\\遥控\\和电机调速.
Platform: | Size: 3743 | Author: 陈雄彬 | Hits:

[Other resourceRD68HC908NGCDSW

Description: 菲斯卡尔908无刷电机控制程序,c语言编写,该程序主要用于洗衣机马达驱动。
Platform: | Size: 171166 | Author: yangjian | Hits:

[Internet-Network用ftp协议完成多线程断点续传的源码

Description:  各个线程任务分配是这样实现的。在开始下载时,文件平均分成若干块进行下载。如第一个线程一开始的任务是从文件的0位置开始下载一直到72908位置处。线程1每次下载一块数据后就要调整任务,如第一次下载了20800字节的数据,那么线程1的任务将改为:20800-72908。如此下去,直到任务为72908-72908时表示线程1完成了当前的下载任务。此时,线程1就分析各个线程的任务,找出任务最为繁忙的一个线程:如线程3:14816-218724。那么线程1就自动去调整任务,拿50%的任务来再次下载。周而复始直到各个线程都完成任务。不过这里有一点需要注意:为了避免重复下载部分数据,在调整任务的时候,起始的文件便移量必须加上接受缓冲器的字节数,因为如前面所举的列子来看。线程1和线程3在平衡负载的时候,线程正在下载数据,如果所剩的数据比接受缓冲器的大小还小,线程1和线程3的部分下载数据将会重复。   在调整任务和分析任务的时候,会发现一个问题。就是读取文件数据太过频繁。于是我用了一个数据结构。在下载文件的过程中始终打开配置文件,这样速度提高了很多。在文件下载完毕后关闭文件。-various threads assignment is achieved. At the beginning of the download, the paper divided into a number of pieces of the download. As a thread of a task is to start from the position paper of 0 to start the download has 72,908 locations Department. Thread a download each one will have to adjust the data tasks, such as the first downloaded 20,800 gigabytes of data, then threaded a task will be re :20800- 72908. This situation continues until the mandate of 72908-72908 said threaded a completion of the current mandate of the download. At this point, a thread on the analysis of the various threads of tasks, the most heavy task to find a thread : If 3:14816-218724 threads. Then a threaded automatically adjust the mandate, with 50% of the tasks to be downloaded again. Thread cycle until all
Platform: | Size: 96256 | Author: 屠理峰 | Hits:

[SCM908info

Description: motorola单片机MCHC908的使用方法以及例程-motorola Singlechip MCHC908 the use of methods and routines
Platform: | Size: 2475008 | Author: | Hits:

[assembly language908

Description: 空气净化器的控制.包含定时\遥控\和电机调速.-Control of air purifiers. Contains timing control and motor speed.
Platform: | Size: 3072 | Author: 陈雄彬 | Hits:

[Other systemsRD68HC908NGCDSW

Description: 菲斯卡尔908无刷电机控制程序,c语言编写,该程序主要用于洗衣机马达驱动。-菲斯卡尔908 brushless motor control procedures, c language, the program mainly used for washing machine motor drive.
Platform: | Size: 171008 | Author: yangjian | Hits:

[SCM908asm

Description: freescale 908单片机下如何编码汇编程序。-the asm of freescale 908
Platform: | Size: 783360 | Author: 王跃 | Hits:

[SCMSN1602WK

Description: 使用TC0C与FP00中断测量温度,----获得成功!数码管在主程序显示,没有抖动!2 个端口独立上下限控制输出.芯片: SN8P1602B-SOP18脚,电容器104,传感器50K,标准电阻4K7.50格分度 两路控制说明:均为:温度<下限值控制=高电平.温度≥上限值控制=低电平.两路控制各使用自己的上下限来控制.设置上下限分别闪烁显示0H,0L,1H,1L.这是一个很成功的温控程序,仅仅1K空间做出来 4 个上下限值的控制. 校验和:1E09,使用空间908剩余空间115 47K+4.7K+104 配置.50KET传感器,FP00测量 2 路上下限控制.-FP00 interrupted TC0C with the use of temperature measuring success ,----! Digital tube display in the main program, there is no jitter! Two independent upper and lower limits of the port control output. Chipset: SN8P1602B-SOP18-pin, capacitor 104, the sensor 50K, Standard Resistor 4K7 .50 degree grid control two-way Description: are: temperature < the lower limit control = high. ≥ upper limit of temperature control = low. two-way control the use of their own to control the upper and lower limits. scintillation set upper and lower limits, respectively, Showing 0H, 0L, 1H, 1L. This is a very successful program of temperature control, 1K only four out of space in upper and lower control limits. checksum: 1E09, the use of space 908 space 115 47K+4.7 K+104 .50 KET sensor configuration, FP00 measurement 2 lower limit of control on the road.
Platform: | Size: 7168 | Author: 蓝天 | Hits:

[MTKMultiport_Download_exe_v3.0908.00

Description: MTK多路下载工具最新3.908版本,支持市面上大部分Flash-MTK multi-channel 3.908 download the latest version of the tool to support the market most of the Flash
Platform: | Size: 3548160 | Author: litanhe | Hits:

[MTKMTK_Flash_Tool_v3.908.00_(2009.02.24)

Description: Another MTK Flash Tools for MTK Firmware
Platform: | Size: 2247680 | Author: redcrazy | Hits:

[SQL ServerQPGameWebDB_db_200908011400

Description: 网狐棋牌游戏数据库,200908最新版的,我知道的最新版数据库-Network Fox chess games database, the latest version of the 200,908, I know that the latest version of the database
Platform: | Size: 3789824 | Author: 邓声 | Hits:

[Data structsBaseSort

Description: (2)已知序列{503,87,512,61,908,170,897,275,652,462},采用基数排序法对其作升序排序,打印每一趟的结果。-(2) the known sequence {503,87,512,61,908,170,897,275,652,462} method of its use radix sort for ascending order, print the results of each trip.
Platform: | Size: 2048 | Author: 王玉珏 | Hits:

[Data structssort

Description: 三)排序 (1)插入排序——已知序列{17,18,60,40,7,32,73,65,85} 建立一个顺序表,采用插入排序算法的实现升序排序,打印排序结果; (2)交换排序——已知序列{503,87,512,61,908,170,897,275,652,462} (1)建立一个顺序表,采用冒泡排序法实现升序排序,并打印每趟排序结果; (2)建立一个顺序表,采用快速排序法实现升序排序,并打印每趟排序结果,与(1)做比较; (3)选择排序——已知序列{42,13,24,91,23,16,05,88} 利用简单选择排序,实现上述序列的降序排序;-C) sort (1) insertion sort- known sequences to create a sequence {17,18,60,40,7,32,73,65,85} table, using insertion sort algorithm implementation in ascending order, print, sort the results (2) Exchange sort- known sequence {503,87,512,61,908,170,897,275,652,462} (1) to establish a sequence tables, using bubble sort method to achieve ascending order, Sort and print the results of each trip (2) to establish a sequence tables, realized by quick sort in ascending order, sort and print the results of each trip, and (1) to compare (3) Select the sort- known sequence {42 , 13,24,91,23,16,05,88} using a simple selection sort, to achieve the above sequence of descending order
Platform: | Size: 2048 | Author: 王玉珏 | Hits:

[DocumentscPPpractice

Description: 第6章(上)编程作业第1题题目: 1、输入一个正整数n,它代表一个人民币钱数(元数)。求取这样一个方案,使用最少张数的人民币纸币,凑成上述的钱数n。 注:共有七种元以上面值的人民币纸币,分别为:100,50,20,10,5,2,1。假设输入数据为196时, 则最少要用6张人民币纸币:196 = 1*100 + 1*50 2*20 + 1*5 + 1*1。当输入数据为908时, 则最少要用12张人民币纸币:908 = 9*100 + 1*5 + 1*2 + 1*1。 可设计一个程序,使执行后的屏幕显示结果具有如下形式: Input a positive intdger: 196<回车> 196 (yuan) = 1*100 + 1*50 + 2*20 + 1*5 + 1*1 (yuan) total_sheet = 6 */-Chapter 6 (I) programming assignment questions Question 1: 1, enter a positive integer n, it represents an RMB amount of money (metadata). To strike such a program, using the least number of sheets of RMB notes, make up the amount of money n. Note: There are seven par value of RMB yuan notes are: 100,50,20,10,5,2,1. Assuming the input data is 196, then at least use the six yuan notes: 196 = 1* 100+ 1* 50 2* 20+ 1* 5+ 1* 1. When the input data for the 908, then at least use the 12 yuan note: 908 = 9* 100+ 1* 2+ 5+ 1* 1* 1. A program can be designed so that the screen displays the results after the execution has the following form: Input a positive intdger: 196 < Enter> 196 (yuan) = 1* 100+ 1* 50+ 2* 20+ 1* 5+ 1* 1 (yuan) total_sheet = 6* /
Platform: | Size: 1024 | Author: zhj | Hits:

[Internet-NetworkVisual-CPPTP312C-908

Description: VC++网络编程一书的源码,希望有需要的人士可以参考,所有例子都已经经过编译,确保可以使用。-VC++ network programming book source code, I hope those who need to refer to all the examples have been compiled to ensure that you can use.
Platform: | Size: 4446208 | Author: NateRiver | Hits:

[JSP/JavaYUNSUANFUYUBIAODASHI

Description: (1) 加减运算符 +,-.例如 2+39,908.98-23等. 加减运算符是双目运算符,即连接两个操作元的运算符.加减运算符的结合方向是从左到右.例如: 2+3-8,先计算2+3,然后再将得到的结果减8.加减运算符的操作元是整型或浮点型数据,加减运算符的优先级是4级. (2) 乘,除和求余运算符 *,/, .例如 2*39 908.98/23等. *,/, 运算符是双目运算符,即连接两个操作元的运算符.*,/, 运算符的结合方向是从左到右,例如 2*3/8,先计算2*3,然后再将得到的结果除以8.乘除运算符的操作元是整型或浮点型数据.*,/, 运算符的优先级是3级. 用算术符号和括号连接起来的符合java语法规则的式子,如x+2*y-30+3*(y+5).-Subtraction of (1) The operators+,- example 2+39,908.98-23, and so on. The subtraction operator is the operator of the eyes, that is to connect the two operations of the operator. Combination of addition and subtraction operator direction is from left to right: 2+3-8, first calculate 2+3, and then The results obtained minus 8 plus or minus operator operating an integer or floating point data, the subtraction operator priority is 4. (2) x, and the remainder operator*, /, 2* 39 908.98/23. *, /, Operator is a binary operator symbol, that is to connect the two operand operator,*, /, operator binding direction is from left to right, for example, 2* 3/8, the first calculation of 2* 3, and then get the results divided by 8. operations multiplication and division operator is the integer or floating point data* / operator priority is 3. Formula of arithmetic symbols and parentheses to connect java syntax rules, such as x+2* y-30+3* (y+5),
Platform: | Size: 9216 | Author: 徐云婷 | Hits:

[File FormatSIM908HD

Description: SIM 908 hardware design document
Platform: | Size: 3085312 | Author: kumar | Hits:

[Otherbingduyuanma

Description: 病毒源码 使用后 你就准备重新装系统 吧 里面的每个步骤都有说明的J先生自主研究 不懂得加我QQ:1454677908 谢谢大家支持-Virus source, you are ready to re-install the system inside each step has described Mr. J, independent research and do not know how to add my QQ: 1,454,677,908 thank you for support
Platform: | Size: 3072 | Author: 刘备 | Hits:

[Other Embeded programThief-motocycle-detection-using-module-sim-908.ra

Description: Thief motocycle detection using module sim 908
Platform: | Size: 353280 | Author: Vu Phan | Hits:
« 12 »

CodeBus www.codebus.net