?? readme
字號:
borednet -- a passtime for idle computersNOTE: the Python code current works only on Unix.To try this out:1. Either install idel with `make install' from the main directory ofthis distribution, or just build it with `make' and then edit thepaths in the variables at the top of jobber.py and dealer.py to referto idelvm and idelasm in the main directory. (I should automate this,obviously.)2. To run the example job dealer, go into this directory and enter: $ python factoring-task.py3. To run a jobber client, start up a new shell and enter: $ python jobber.py localhost # or whatever host is running codecon-sampleThis should result in codecon-sample eventually printing "11 factors121" amidst debugging messages. Not too thrilling yet...How it works:A jobber contacts a dealer, tells it "I'm bored", and gets back eithera job or a referral to another dealer that might have work. The job,if it gets one, takes the form of an idel object file plus a tagthat's unique among all the jobs from that dealer. The jobber runsthe job (at high niceness and with limits on the total space and timeconsumed) then makes a new connection to the dealer and sends back theoutput with the tag. (Currently there's no limit on the amount ofoutput except what's inherent in the runtime limit. Currently the jobis also able to save its state to the jobber's hard disk, though thefilename is fixed and the size of the file is bounded by the size ofmemory given to idelvm. These will be plugged in the next few days.)A dealer keeps a list of tasks to work on (each task being divisibleinto jobs), plus a list of jobs sent out but not yet completed. Thedealer code needs more work to be realistically useful -- keepingtrack of which jobs failed and need to be reissued, and which onesshould have finished by now but haven't, communicating with otherdealers about available tasks in order to get referrals, sending outjobs redundantly for cross-checking, and so on.A task is an object you create to put your jobs onto borednet.factoring-task.py is an example; the methods you need to write areexplained in the doc strings there.General apology:I'm still fairly new at network code -- this borednet implementationis much more amateurish than the main idel code. Suggestions andimprovements are welcome.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -