Questions tagged [threadgroup]

121 questions
0
votes
1 answer

Boost thread_group thread limiter

Am trying to limit the number of threads at anytime to be equal to utmost the number of cores available. Is the following a reasonable method? Is there a better alternative? Thanks! boost::thread_group threads; iThreads = 0; for (int…
Tims
  • 627
  • 7
  • 19
0
votes
1 answer

JMeter - Stop Thread Group and Start Next Thread Group

I have 2 ThreadGroups in my TestPlan (I've checked the "Run Thread Groups Consecutively" option) The first Thread Group is designed as follows: a) Set the option for "Action to be taken after a Sampler error" as "Stop Thread" b) Has a series of…
0
votes
0 answers

Task Scheduling using threads in java(Edited)

I am currently working on a DB integrated daily file transfer scheduling form application for operational business use. In order to be able to control and have access to specific schedules, I have decided to create a thread for each schedule so that…
0
votes
1 answer

How to decide the ideal hold time in Ultimate Thread Group in Jmeter

How can we decide the ideal hold time in Ultimate Thrad Group in Jmeter
Ankit Raonka
  • 6,429
  • 10
  • 35
  • 54
0
votes
1 answer

Advantages of Ultimate Thread group over normal thread group in jmeter

Why do we use Ultimate thread group and what are its advantages over the normal one
0
votes
2 answers

Use of ThreadFactory in java

The definition of ThreadFactory interface as per documentation is An object that creates new threads on demand. Using thread factories removes hardwiring of calls to new Thread, enabling applications to use special thread subclasses, priorities,…
Ravi Jain
  • 1,452
  • 2
  • 17
  • 41
0
votes
2 answers

ThreadPool Finish Work, when program is closing

Is there a way to make a ThreadPool finish its work, when the Program is closing? when i was using a normal Thread, i just putted in t.Join on the FormClosing event.. but ThreadPool seems not not have any Join methode?
Droa
  • 427
  • 7
  • 15
0
votes
2 answers

Encapsulated boost thread_group. Questions about ids and synchronization

I´m using a class that encapsulates a thread_group, and have some questions about it class MyGroup{ private: boost::this_thread::id _id; boost::thread::thread_group group; int abc; //other attributes public: void…
Tom
  • 43,810
  • 29
  • 138
  • 169
0
votes
5 answers

Clustering using Threads in Java

I have a job that takes too long time in Java. So I want to divide this job into threads and run them. After the threads finishes their jobs, returns to my service and Service give them new jobs. ThreadGroup is suitable for this or any other…
firstthumb
  • 4,627
  • 6
  • 35
  • 45
0
votes
1 answer

When should one create new Thread Groups

I was wondering, what are the advantages of assigning threads to a thread group instead of containing them all in one (The Main) group? Assuming there are 10 or more constantly active threads, and a couple of threads been initiated every now and…
TacB0sS
  • 10,106
  • 12
  • 75
  • 118
-1
votes
1 answer

When a thread is dead what happens to its object?

Following code is giving me NullPointerException. class MT extends Thread{ public void run(){ } } public class ThreadGroupDemo{ public static void main(String[] args) throws InterruptedException{ MT t = new MT(); …
-1
votes
1 answer

How to create a thread without ThreadGroup?

This question was asked in an interview for the Senior Developer Role. As I don't have any exposure to Java multi-threading and concurrency. So, I could not answer this. Every thread we create is part of a ThreadGroup. Then how do we create a…
Sitaram P
  • 7
  • 3
-1
votes
1 answer

How to use ultimate thread group in JMeter for below case..?

I want to run a load test for 350 users on different pages of a application and below is the case i am looking for. Initially add 50 users, and next need to add 35 users every 60 seconds until it reaches the limit of 350 and the load time should be…
-1
votes
1 answer

Creating multiple thread groups in jmeter Testplan

I want to create 80 thread groups on Jmeter test plan, 1 thread group for 1 user. Can somebody help me with an easy way to achieve this? I'm using jmeter for the first time and the only way i know is to copy a thread group and rename after pasting
Klk87
  • 1
-1
votes
1 answer

How can i run a set of thread groups together

I want to run a set of thread groups: --Thread Group A --Thread Group B --Thread Group C --Thread Group D I want to Run A and B together(as in 'A' First and Then 'B') and while this is happening i want to run C and D together.
Vishal Puliani
  • 201
  • 1
  • 3
  • 14
1 2 3
8
9