Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 232 for nThreads (0.3 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

       *
       * Our usages should at least be *relatively* safe: Typically, threads started by a test are dying
       * at the end of the test, so there is no object state put at risk by stopping the threads
       * abruptly. In other cases, a test may put a thread into an uninterruptible operation
       * intentionally, so there is no other way to clean up these threads. (The better solution,
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 21:00:51 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/QueueDispatcher.kt

          return failFastResponse!!
        }
    
        val result = responseQueue.take()
    
        // If take() returned because we're shutting down, then enqueue another dead letter so that any
        // other threads waiting on take() will also return.
        if (result == DEAD_LETTER) responseQueue.add(DEAD_LETTER)
    
        return result
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Jun 14 16:09:26 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                int threadCount = 10;
                Thread[] threads = new Thread[threadCount];
                byte[][] dataArrays = new byte[threadCount][128];
    
                for (int i = 0; i < threadCount; i++) {
                    final int index = i;
                    dataArrays[i] = new byte[128];
                    Arrays.fill(dataArrays[i], (byte) i);
    
                    threads[i] = new Thread(() -> {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 43.7K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/TestThread.java

       *
       * Our usages should at least be *relatively* safe: Typically, threads started by a test are dying
       * at the end of the test, so there is no object state put at risk by stopping the threads
       * abruptly. In other cases, a test may put a thread into an uninterruptible operation
       * intentionally, so there is no other way to clean up these threads. (The better solution,
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 21:00:51 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/hash/LongAdder.java

     * (method {@link #add}) are contended across threads, the set of variables may grow dynamically to
     * reduce contention. Method {@link #sum} (or, equivalently, {@link #longValue}) returns the current
     * total combined across the variables maintaining the sum.
     *
     * <p>This class is usually preferable to {@link AtomicLong} when multiple threads update a common
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Mar 20 13:05:10 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

        private final Executor executor;
    
        public DefaultArtifactResolver() {
            int threads = Integer.getInteger("maven.artifact.threads", 5);
            if (threads <= 1) {
                executor = Runnable::run;
            } else {
                executor = new ThreadPoolExecutor(
                        threads, threads, 3, TimeUnit.SECONDS, new LinkedBlockingQueue<>(), new DaemonThreadCreator());
            }
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 25K bytes
    - Click Count (0)
  7. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

                            e.printStackTrace();
                        }
                    });
                }
    
                // Start all threads
                for (Thread t : threads) {
                    t.start();
                }
    
                // Wait for completion
                for (Thread t : threads) {
                    t.join();
                }
    
                // Verify thread safety - no unexpected exceptions
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  8. container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt

            .build()
    
        executor = newVirtualThreadPerTaskExecutor()
    
        // Capture non-deterministic but probable sysout warnings of pinned threads
        // https://docs.oracle.com/en/java/javase/21/core/virtual-threads.html
        System.setOut(PrintStream(capturedOut))
      }
    
      @AfterEach
      fun checkForPinning() {
        assertThat(capturedOut.toString()).isEmpty()
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.7K bytes
    - Click Count (1)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

     * thread, which yields its execution privilege while calling [runTasks], [runNextTask], or
     * [advanceUntil]. These functions don't return until the task threads are all idle.
     *
     * Task threads release their execution privilege in these ways:
     *
     *  * By yielding in [TaskRunner.Backend.coordinatorWait].
     *  * By yielding in [BlockingQueue.poll].
     *  * By completing.
     */
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed May 28 23:28:25 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  10. cmd/server-rlimit.go

    	return currentKernel < kernel.Version(4, 0, 0)
    }
    
    func setMaxResources(ctx serverCtxt) (err error) {
    	// Set the Go runtime max threads threshold to 90% of kernel setting.
    	sysMaxThreads, err := sys.GetMaxThreads()
    	if err == nil {
    		minioMaxThreads := (sysMaxThreads * 90) / 100
    		// Only set max threads if it is greater than the default one
    		if minioMaxThreads > 10000 {
    			debug.SetMaxThreads(minioMaxThreads)
    		}
    	}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Jul 02 15:09:36 GMT 2024
    - 2.8K bytes
    - Click Count (0)
Back to Top