- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for starvation (0.15 sec)
-
src/sync/mutex.go
delta := int32(mutexLocked - 1<<mutexWaiterShift) if !starving || old>>mutexWaiterShift == 1 { // Exit starvation mode. // Critical to do it here and consider wait time. // Starvation mode is so inefficient, that two goroutines // can go lock-step infinitely once they switch mutex // to starvation mode. delta -= mutexStarving } atomic.AddInt32(&m.state, delta) break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 8.4K bytes - Viewed (0) -
src/runtime/netpoll_stub.go
lock(&netpollBrokenLock) noteclear(&netpollNote) netpollBroken = false unlock(&netpollBrokenLock) notetsleep(&netpollNote, delay) unlock(&netpollStubLock) // Guard against starvation in case the lock is contended // (eg when running TestNetpollBreak). osyield() } return gList{}, 0 } func netpollinited() bool { return netpollInited.Load() != 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 1.5K bytes - Viewed (0) -
src/syscall/forkpipe2.go
return } // ForkLock is currently locked for writing. if hasWaitingReaders(&ForkLock) { // ForkLock is locked for writing, and at least one // goroutine is waiting to read from it. // To avoid lock starvation, allow readers to proceed. // The simple way to do this is for us to acquire a // read lock. That will block us until all current // conceptual write locks are released. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 10 19:19:59 UTC 2023 - 2.6K bytes - Viewed (0) -
pkg/kubelet/cm/node_container_manager_linux.go
nodeAllocatable = cm.getNodeAllocatableInternalAbsolute() } cgroupConfig := &CgroupConfig{ Name: cm.cgroupRoot, // The default limits for cpu shares can be very low which can lead to CPU starvation for pods. ResourceParameters: getCgroupConfig(nodeAllocatable), } if cm.cgroupManager.Exists(cgroupConfig.Name) { return nil } if err := cm.cgroupManager.Create(cgroupConfig); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 10.5K bytes - Viewed (0) -
src/sync/pool_test.go
} for b := 0; b < 100; b++ { p.Get() } } }) } // Simulate object starvation in order to force Ps to steal objects // from other Ps. func BenchmarkPoolStarvation(b *testing.B) { var p Pool count := 100 // Reduce number of putted objects by 33 %. It creates objects starvation // that force P-local storage to steal objects from other Ps. countStarved := count - int(float32(count)*0.33)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sync/semaphore/semaphore.go
w := next.Value.(waiter) if s.size-s.cur < w.n { // Not enough tokens for the next waiter. We could keep going (to try to // find a waiter with a smaller request), but under load that could cause // starvation for large requests; instead, we leave all remaining waiters // blocked. // // Consider a semaphore used as a read-write lock, with N tokens, N
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 4.3K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/DefaultConditionalExecutionQueue.java
} private int getMaxWorkerCount() { return workerLimits.getMaxWorkerCount(); } /** * Expanding the thread pool is necessary when work items submit other work. We want to avoid a starvation scenario where * the thread pool is full of work items that are waiting on other queued work items. The queued work items cannot execute
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 06:47:40 UTC 2024 - 7.2K bytes - Viewed (0) -
platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/DefaultWorkerExecutor.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 15:17:07 UTC 2024 - 15.2K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
* set to {@code true} grants threads access in FIFO order. Fairness generally decreases throughput * but reduces variability and avoids starvation. * * <p>This class and its iterator implement all of the optional methods of the {@link * Collection} and {@link Iterator} interfaces. * * @author Doug Lea * @author Justin T. Sampson
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 22.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
* set to {@code true} grants threads access in FIFO order. Fairness generally decreases throughput * but reduces variability and avoids starvation. * * <p>This class and its iterator implement all of the optional methods of the {@link * Collection} and {@link Iterator} interfaces. * * @author Doug Lea * @author Justin T. Sampson
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 22.5K bytes - Viewed (0)