- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 662 for goroutines (0.15 sec)
-
src/syscall/pwd_plan9.go
var ( wdmu sync.Mutex // guards following wdSet bool wdStr string ) // Ensure current working directory seen by this goroutine matches // the most recent [Chdir] called in any goroutine. It's called internally // before executing any syscall which uses a relative pathname. Must // be called with the goroutine locked to the OS thread, to prevent // rescheduling on a different thread (potentially with a different
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 2.3K bytes - Viewed (0) -
src/testing/benchmark.go
// It creates multiple goroutines and distributes b.N iterations among them. // The number of goroutines defaults to GOMAXPROCS. To increase parallelism for // non-CPU-bound benchmarks, call [B.SetParallelism] before RunParallel. // RunParallel is usually used with the go test -cpu flag. // // The body function will be run in each goroutine. It should set up any
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 23.9K bytes - Viewed (0) -
src/plugin/plugin.go
// It is safe for concurrent use by multiple goroutines. func Open(path string) (*Plugin, error) { return open(path) } // Lookup searches for a symbol named symName in plugin p. // A symbol is any exported variable or function. // It reports an error if the symbol is not found. // It is safe for concurrent use by multiple goroutines. func (p *Plugin) Lookup(symName string) (Symbol, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 19:46:10 UTC 2023 - 4.3K bytes - Viewed (0) -
src/internal/trace/traceviewer/format/format.go
} type SortIndexArg struct { Index int `json:"sort_index"` } type HeapCountersArg struct { Allocated uint64 NextGC uint64 } const ( ProcsSection = 0 // where Goroutines or per-P timelines are presented. StatsSection = 1 // where counters are presented. TasksSection = 2 // where Task hierarchy & timeline is presented. ) type GoroutineCountersArg struct { Running uint64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 20:45:06 UTC 2023 - 2K bytes - Viewed (0) -
src/runtime/pprof/pprof.go
// or network connections. // // A Profile's methods can be called from multiple goroutines simultaneously. // // Each Profile has a unique name. A few profiles are predefined: // // goroutine - stack traces of all current goroutines // heap - a sampling of memory allocations of live objects // allocs - a sampling of all past memory allocations
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 30.6K bytes - Viewed (0) -
src/os/exec/exec.go
// goroutines exit, or after WaitDelay has expired. parentIOPipes []io.Closer // goroutine holds a set of closures to execute to copy data // to and/or from the command's I/O pipes. goroutine []func() error // If goroutineErr is non-nil, it receives the first error from a copying // goroutine once all such goroutines have completed.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 20:13:53 UTC 2024 - 41.4K bytes - Viewed (0) -
src/runtime/crash_test.go
output := runTestProg(t, "testprog", "GoexitDeadlock") want := "no goroutines (main called runtime.Goexit) - deadlock!" if !strings.Contains(output, want) { t.Fatalf("output:\n%s\n\nwant output containing: %s", output, want) } } func TestStackOverflow(t *testing.T) { output := runTestProg(t, "testprog", "StackOverflow") want := []string{ "runtime: goroutine stack exceeds 1474560-byte limit\n", "fatal error: stack overflow",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 19:46:10 UTC 2024 - 27K bytes - Viewed (0) -
src/runtime/sema.go
// Charge contention that this (delayed) unlock caused. // If there are N more goroutines waiting beyond the // one that's waking up, charge their delay as well, so that // contention holding up many goroutines shows up as // more costly than contention holding up a single goroutine. // It would take O(N) time to calculate how long each goroutine // has been waiting, so instead we charge avg(head-wait, tail-wait)*N.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 19K bytes - Viewed (0) -
src/runtime/metrics/description.go
Kind: KindUint64, }, { Name: "/sched/goroutines:goroutines", Description: "Count of live goroutines.", Kind: KindUint64, }, { Name: "/sched/latencies:seconds", Description: "Distribution of the time goroutines have spent in the scheduler in a runnable state before actually running. Bucket counts increase monotonically.", Kind: KindFloat64Histogram,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 06 17:59:12 UTC 2023 - 19.6K bytes - Viewed (0) -
src/sync/map_test.go
// Checks for proper synchronization between Clear, Store, Load operations. func TestConcurrentClear(t *testing.T) { var m sync.Map wg := sync.WaitGroup{} wg.Add(30) // 10 goroutines for writing, 10 goroutines for reading, 10 goroutines for waiting // Writing data to the map concurrently for i := 0; i < 10; i++ { go func(k, v int) { defer wg.Done() m.Store(k, v) }(i, i*10) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 01 15:34:22 UTC 2024 - 8.1K bytes - Viewed (0)