Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 232 for nThreads (0.1 seconds)

  1. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

                        Thread.currentThread().interrupt();
                    }
                });
            }
    
            // Start all threads
            for (Thread t : threads) {
                t.start();
            }
    
            // Wait for all threads to complete
            for (Thread t : threads) {
                t.join();
            }
    
            // Verify password is wiped
            assertNull(auth.getPassword());
        }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 23.3K bytes
    - Click Count (0)
  2. src/test/java/jcifs/util/SimpleCircuitBreakerTest.java

            AtomicInteger successCount = new AtomicInteger(0);
            AtomicInteger failureCount = new AtomicInteger(0);
    
            // Create multiple threads
            Thread[] threads = new Thread[10];
            for (int i = 0; i < threads.length; i++) {
                final int index = i;
                threads[i] = new Thread(() -> {
                    for (int j = 0; j < 10; j++) {
                        try {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/Crawler.java

        }
    
        /**
         * Checks if the crawler threads are daemon threads.
         * @return true if daemon threads, false otherwise.
         */
        public boolean isDaemon() {
            return daemon;
        }
    
        /**
         * Sets whether the crawler threads should be daemon threads.
         * @param daemon true to make threads daemon, false otherwise.
         */
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 17K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

            int threadCount = 10;
            Thread[] threads = new Thread[threadCount];
    
            // When - multiple threads call setFileId concurrently
            for (int i = 0; i < threadCount; i++) {
                final int index = i;
                threads[i] = new Thread(() -> {
                    byte[] threadFileId = new byte[16];
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java

                            }
                        }
                    }
                });
            }
    
            // Start all threads
            for (Thread thread : threads) {
                thread.start();
            }
    
            // Wait for all threads to complete
            for (Thread thread : threads) {
                thread.join();
            }
    
            // Verify results
            assertTrue(exceptions.isEmpty());
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Thu Nov 20 13:07:01 GMT 2025
    - 36.7K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

            // When - Multiple threads accessing trees concurrently
            for (int t = 0; t < threadCount; t++) {
                final int threadId = t;
                executor.submit(() -> {
                    try {
                        startLatch.await(); // Wait for all threads to be ready
    
                        for (int i = 0; i < opsPerThread; i++) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

        }
    
        @Test
        public void testThreadSafety() throws InterruptedException {
            // Test concurrent updates from multiple threads
            Thread[] threads = new Thread[10];
    
            for (int i = 0; i < threads.length; i++) {
                final int index = i;
                threads[i] = new Thread(() -> {
                    for (int j = 0; j < 100; j++) {
                        String name = "file" + index + "_" + j + ".txt";
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java

        this.nameFormat = nameFormat;
        return this;
      }
    
      /**
       * Sets daemon or not for new threads created with this ThreadFactory.
       *
       * <p><b>Java 21+ users:</b> use {@link Thread.Builder.OfPlatform#daemon(boolean)} instead.
       *
       * @param daemon whether or not new Threads created with this ThreadFactory will be daemon threads
       * @return this for the builder pattern
       */
      @CanIgnoreReturnValue
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:35:26 GMT 2025
    - 9K bytes
    - Click Count (0)
  9. docs/contribute/concurrency.md

    #### Shared reader thread
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 7K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/timer/SystemMonitorTarget.java

                return b.toString();
            }).collect(Collectors.joining(",")));
            buf.append("},");
            final Threads threads = jvmStats.getThreads();
            buf.append("\"threads\":{");
            append(buf, "count", () -> threads.getCount()).append(',');
            append(buf, "peak", () -> threads.getPeakCount());
            buf.append("},");
            final Classes classes = jvmStats.getClasses();
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 7.8K bytes
    - Click Count (0)
Back to Top