Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 70 for nThreads (0.07 sec)

  1. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java

          throws ExecutionException, InterruptedException {
    
        ConcurrentHashMultiset<String> multiset = ConcurrentHashMultiset.create(map);
        int nThreads = 20;
        int tasksPerThread = 10;
        int nTasks = nThreads * tasksPerThread;
        ExecutorService pool = newFixedThreadPool(nThreads);
        ImmutableList<String> keys = ImmutableList.of("a", "b", "c");
        try {
          List<Future<int[]>> futures = newArrayListWithExpectedSize(nTasks);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 08 22:42:14 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImpl.java

         */
        protected ExecutorService newFixedThreadPool(final int nThreads) {
            if (logger.isDebugEnabled()) {
                logger.debug("Initialized executor thread pool: size={}", nThreads);
            }
            return new ThreadPoolExecutor(nThreads, nThreads, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>(nThreads),
                    new ThreadPoolExecutor.CallerRunsPolicy());
        }
    
        @Override
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 29.7K bytes
    - Viewed (3)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      /**
       * Calls get() repeatedly from many different threads, and tests that all of the removed entries
       * (removed because of size limits or expiration) trigger appropriate removal notifications.
       */
      @GwtIncompatible // QueuingRemovalListener
    
      public void testRemovalNotification_get_basher() throws InterruptedException {
        int nTasks = 1000;
        int nThreads = 100;
        int getsPerTask = 1000;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        CountDownLatch gettersComplete = new CountDownLatch(nThreads);
        for (int i = 0; i < nThreads; i++) {
          int index = i;
          Thread thread =
              new Thread(
                  new Runnable() {
                    @Override
                    public void run() {
                      gettersStartedSignal.countDown();
                      Object value = null;
                      try {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 91.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        CountDownLatch gettersComplete = new CountDownLatch(nThreads);
        for (int i = 0; i < nThreads; i++) {
          int index = i;
          Thread thread =
              new Thread(
                  new Runnable() {
                    @Override
                    public void run() {
                      gettersStartedSignal.countDown();
                      Object value = null;
                      try {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 91.1K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java

                this.threads = 1;
                this.executor = null;
                this.plan = null;
            }
    
            public BuildPlan buildInitialPlan(List<TaskSegment> taskSegments) {
                int nThreads = Math.min(
                        session.getRequest().getDegreeOfConcurrency(),
                        session.getProjects().size());
                boolean parallel = nThreads > 1;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Oct 16 06:12:36 UTC 2025
    - 55.1K bytes
    - Viewed (0)
  7. 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.
         */
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 17K bytes
    - Viewed (0)
  8. 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());
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 13:07:01 UTC 2025
    - 36.7K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReaderTest.java

                });
            }
    
            for (Thread th : threads) {
                th.start();
            }
            for (Thread th : threads) {
                th.join();
            }
            assertEquals(num, count.get());
            assertEquals(num, valueSet.size());
    
            Set<String> valueSet2 = Collections.synchronizedSet(new HashSet<>());
            threads = new Thread[threadNum];
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Sun Nov 23 13:04:17 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java

                });
            }
    
            // Start all threads simultaneously
            for (Thread thread : threads) {
                thread.start();
            }
    
            // Wait for all threads to complete
            for (Thread thread : threads) {
                thread.join();
            }
    
            // All threads should see the initialized state
            for (boolean result : initResults) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Nov 19 08:59:28 UTC 2025
    - 11.2K bytes
    - Viewed (0)
Back to top