effective

package
v0.0.0-...-3ec3ac8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2020 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxOutstanding = 100
	MinOutstanding = 0
)

haha

Variables

View Source
var NCPU = runtime.NumCPU() // number of CPU cores

Functions

func Serve

func Serve(queue chan *Request)

func Serve2

func Serve2(queue chan *Request)

func Serve3

func Serve3(queue chan *Request)

func Serve4

func Serve4(clientRequests chan *Request, quit chan bool)

Types

type Counter

type Counter int

简单的计数器服务。

func (*Counter) ServeHTTP

func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request)

type Request

type Request int

type Vector

type Vector []float64

func (Vector) DoAll

func (v Vector) DoAll(u Vector)

func (Vector) DoSome

func (v Vector) DoSome(i, n int, u Vector, c chan int)

将此操应用至 v[i], v[i+1] ... 直到 v[n-1]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL