Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 805 for goroutineID (0.31 sec)

  1. src/cmd/trace/procgen.go

    	gs.augmentName(st.Stack)
    
    	// Handle the goroutine state transition.
    	from, to := st.Goroutine()
    	if from == to {
    		// Filter out no-op events.
    		return
    	}
    	if from == trace.GoRunning && !to.Executing() {
    		if to == trace.GoWaiting {
    			// Goroutine started blocking.
    			gs.block(ev.Time(), ev.Stack(), st.Reason, ctx)
    		} else {
    			gs.stop(ev.Time(), ev.Stack(), ctx)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. src/sync/pool.go

    // Any item stored in the Pool may be removed automatically at any time without
    // notification. If the Pool holds the only reference when this happens, the
    // item might be deallocated.
    //
    // A Pool is safe for use by multiple goroutines simultaneously.
    //
    // Pool's purpose is to cache allocated but unused items for later reuse,
    // relieving pressure on the garbage collector. That is, it makes it easy to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 9.4K bytes
    - Viewed (1)
  3. pkg/ctrlz/topics/assets/templates/proc.html

        </tr>
        </thead>
    
        <tbody>
            <tr>
                <td># Threads</td>
                <td id="Threads">{{.Threads}}</td>
            </tr>
    
            <tr>
                <td># Goroutines</td>
                <td id="Goroutines">{{.Goroutines}}</td>
            </tr>
    
            <tr>
                <td>Effective Group Id</td>
                <td>{{.Egid}}</td>
            </tr>
    
            <tr>
                <td>Effective User Id</td>
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. src/cmd/dist/util.go

    	if err != nil && mode&CheckExit != 0 {
    		outputLock.Lock()
    		if len(data) > 0 {
    			xprintf("%s\n", data)
    		}
    		outputLock.Unlock()
    		if mode&Background != 0 {
    			// Prevent fatalf from waiting on our own goroutine's
    			// bghelper to exit:
    			bghelpers.Done()
    		}
    		fatalf("FAILED: %v: %v", strings.Join(cmd, " "), err)
    	}
    	if mode&ShowOutput != 0 {
    		outputLock.Lock()
    		os.Stdout.Write(data)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 17:50:29 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  5. src/runtime/traceback_test.go

    	parent := fmt.Sprintf("goroutine %d", runtime.Goid())
    	var wg sync.WaitGroup
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		buf := make([]byte, 1<<10)
    		// We collect the stack only for this goroutine (by passing
    		// false to runtime.Stack). We expect to see the current
    		// goroutine ID, and the parent goroutine ID in a message like
    		// "created by ... in goroutine N".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  6. src/runtime/metrics_test.go

    	// to go instantly idle the moment this goroutine goes to sleep, and stay asleep for that
    	// duration. However, the Go runtime can easily eat into idle time while this goroutine is
    	// blocked in a sleep. For example, slow platforms might spend more time expected in the
    	// scheduler. Another example is that a Go runtime background goroutine could run while
    	// everything else is idle. Lastly, if a running goroutine is descheduled by the OS, enough
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  7. src/runtime/testdata/testprogcgo/lockosthread.go

    			println("failed to start goroutine on main thread")
    			os.Exit(1)
    		}
    		// Exit with the thread locked, which should exit the
    		// main thread.
    		ready <- true
    	}()
    	<-ready
    	time.Sleep(1 * time.Millisecond)
    	// Check that this goroutine is still running on a different
    	// thread.
    	self := C.pthread_self()
    	if C.pthread_equal(mainThread, self) != 0 {
    		println("goroutine migrated to locked thread")
    		os.Exit(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 20:21:33 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  8. src/runtime/netpoll_solaris.go

    // ourselves. After we receive an event for a file descriptor,
    // it's our responsibility to ask again to be notified for future
    // events for that descriptor. When doing this we must keep track of
    // what kind of events the goroutines are currently interested in,
    // for example a fd may be open both for reading and writing.
    //
    // A description of the high level operation of this code
    // follows. Networking code will get a file descriptor by some means
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  9. src/internal/trace/testdata/testprog/stress-start-stop.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Tests a many interesting cases (network, syscalls, a little GC, busy goroutines,
    // blocked goroutines, LockOSThread, pipes, and GOMAXPROCS).
    
    //go:build ignore
    
    package main
    
    import (
    	"bytes"
    	"io"
    	"log"
    	"net"
    	"os"
    	"runtime"
    	"runtime/trace"
    	"sync"
    	"time"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. src/runtime/race/timer_test.go

    //go:build race
    
    package race_test
    
    import (
    	"sync"
    	"testing"
    	"time"
    )
    
    func TestTimers(t *testing.T) {
    	const goroutines = 8
    	var wg sync.WaitGroup
    	wg.Add(goroutines)
    	var mu sync.Mutex
    	for i := 0; i < goroutines; i++ {
    		go func() {
    			defer wg.Done()
    			ticker := time.NewTicker(1)
    			defer ticker.Stop()
    			for c := 0; c < 1000; c++ {
    				<-ticker.C
    				mu.Lock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 576 bytes
    - Viewed (0)
Back to top