Make easier to interpret nntp thread state
If I understand correctly, when the nntp component is updated, the new nntp threads are emboldened and existing nntp son who have been added to the are underlined. Is it possible to change the underscore to encourage - as in MS OUTLOOK. Blame my view, but it is simply not good enough.
also found this https://groups.google.com/forum/#! topic/mozilla.support.thunderbird/B0-HDq7Uems
some information on here http://kb.mozillazine.org/index.php?title=UserChrome.css & printable = yes userchrome file and the file does not exist, you must create both.
Tags: Thunderbird
Similar Questions
-
How should I interpret java thread dumps?
I have a multi-threaded application, I am running on a BlackBerry 9000. I suspect there are blocking issues.
I figured out how to trigger the trace of the stack using javaloader - usb logstacktraces (rather than wait for the alert for error "not responding") and can fetch using javaloader - usb eventlog, but I cannot interpret them.
When I develop java applications normal can I use ^-to get a thread dump containing the source files, line numbers, and (most importantly) a list of locks and blocks, telling me that has a lock on an object, and which is blocked waiting for a lock to be released (either by calling the wait() method or exit).
I don't know if this information is in the Blackberry stack traces.
guid:0x9C3CD62E3320B498 time: Thu Sep 10 15:51:37 2009 severity:0 type:3 app:Java Exception data: ForcedStackTraceException baconology(160) 33 2 0x482E4000 baconology(4AA957F5) BlockRun nap 0x3EF baconology(4AA957F5) BlockRun waitForBuffer 0x4BF baconology(4AA957F5) PiecewiseSourceStream read_ 0x14D7 baconology(4AA957F5) PiecewiseSourceStream read 0x1570 net_rim_cldc-16(4A739706) DataSourceInputStream read 0x25AF net_rim_media(4A739765) MP4Info
0x34E1 net_rim_media(4A739765) MP4Info 0x2DA7 net_rim_media(4A739765) MP4Info 0x2D63 net_rim_media(4A739765) MP4Info 0x33A8 net_rim_media(4A739765) StreamingMediaPlayer doRealize 0x9224 net_rim_cldc-16(4A739706) BasicPlayerImpl realize 0xF80 baconology(4AA957F5) JMFToy fabricateAndRealizePlayer 0x9F5 baconology(4AA957F5) JMFToy$3 run 0xD94 net_rim_cldc-1(4A739706) Thread run Given that this thread is blocked waiting to enter the BlockRun.nap () call, I can assume that it is blocked, waiting for a lock on * this *, because otherwise it would be inside the Object.wait () function, waiting for another thread to issue a notifyAll().
What I need to know is the thread that has the lock, so I can arrange for to be released or not granted at all.
Each (single-threaded) stack trace begins with the name of the process that owns the thread, followed by the ID process in parentheses, then by the thread ID, then the State of the thread (1 = RUNNABLE, 2 = pending, 3 = TIMED WAITING, 4 = BLOCKED), then the ID of the lock on which thread executes a wait(), or the ID of the lock, the thread is stuck on (waiting to acquire).
After the stack traces there is a list of the locks. The list shows which own threads which locks and locks Java class names.
The information contained in the stack traces and the list of locks is sufficient for an automated tool to analyze the dependencies between threads and also find dead-locks (as appropriate). I depeloped such a tool (thus, it is possible, and it's not hard to do), but I'm not free to release him.
-
How can I make easy links? Problems with CSS
Sorry, me again. I found how to facilitate the transition of the color of my text navigation links, and it seems easy enough. However, when I add to my code, it seems to work.
I know that it will be a mistake on my part, I just don't know what I did wrong. Any ideas?
<! - section nav HTML - >
< nav id = "nav" role = "navigation" >
< ul >
< li > < a href = "Home.html" title = 'Go Home' rel 'next' = > FRONT PAGE < /a > < /li > "
< li > < a href = "About.html" title = "On BGDR" rel = "next" > ON < /a > < /li > "
< li > < a href = "CV.html' title ="CV"rel = 'next' > CV < /a > < /li >"
< li > < a href = "Blog.html" title = "A blog of my work and thoughts" > BLOG < /a > < /li > "
< li > < a href = "Contact.html" title = "contact me" rel = 'next' > CONTACT < /a > < /li > "
< /ul >
< / nav >
<! - section nav CSS - >
a: link { color: hsla(0,0%,0%,1.00); -webkit-transition: color background-2s ease-out; -moz-transition: color background-2s ease-out; -o - transition: color background-2s ease-out; transition: background-2s ease-out color; text-decoration: none; } a: visited { color: hsla(0,0%,0%,1.00); } a: hover { color: hsla(0,0%,72%,1.00); text-decoration: none; Police-family: quicksand; make-style: normal; Police-weight: 400; cursor: pointer; } / * Note that 4 the code snippets down I have a li {} expressions.* section 3.
Li { float: right; display: block; Width: 10em; } Here is what you wrote in the original post
a: link {}
color: hsla(0,0%,0%,1.00);
-webkit-transition: background color 2s ease-out;
-moz-transition: background color 2s ease-out;
-o - transition: background color 2s ease-out;
transition: background color 2 s ease-out;
text-decoration: none;
}
With this, you target the background color should be the foreground color. The above should be
a: link {}
color: hsla(0,0%,0%,1.00);
-webkit-transition: ease of color 2 s - out;
-moz-transition: ease of color 2 s - out;
-o - transition: ease ofcolor 2 s - out;
transition: ease of color 2 s - out;
text-decoration: none;
}
-
Make "necessary" to help if field statement
Hello
This may be really trivial for someone, but I'm doing a text field 1 becomes a required field if someone ticks box 1. This is how far I got:
var a = this.getField ("box 1");
var two = this.getField ("text box 1");
If (one.value == 'True') {two.mandatory = 'error'} else {two.mandatory = "disabled"};
I entered it as a mouse in action in the box. There is no errors when I did it, but it is not the field is a required field.
Also; It would be a similar script if I wanted to make the field visible/hidden with a checkbox using .its presence = "hidden" / .its presence = "visible"?
Any help appreciated!
OK, some code you use is intended to be used with a form created in LiveCycle Designer. It could be something like the following for an acroform:
Script mouse upwards to the box
Get a reference to the text field
var f is getField ("text 1" box);.
Set several properties for field based on the State of this checkbox
If (event.target.value = 'Off') {}
f.Required = false;
f.Display = display.hidden;
f.Value = "";
} else {}
f.Required = true;
f.Display = display.visible;
}
This assumes that you want the script that will be triggered when the user activates / turns off the check box and the name of the text field is exactly "text box 1. Note that this code sets the value of a blank text field when the checkbox is not selected, which is normally a good thing to do.
-
Try to make a loop on a select statement in a procedure
Ok
I'm writing a procedure that will make an operation on every table in a select statement.
Example: I want to add a column in each table that starts with "XX_" (XX_01, XX_BD, etc.)
I have new procedures.
I guess I have to use a cursor that is defined as:
Then what?cursor xbtable is select * from user_tables where table_name like 'XX_%'; begin open xbtables; loop
How to make this work.
Also, I have to use substr() on xbtable to extract parts of the name of the table...
Can anyone help?
THXI'm sorry, I made a mistake
cursor xbtable is select * from user_tables where table_name like 'XX_ % ';
String VARCHAR2 (200);
Start
for everything in the loop of xbtable
string: = 'ALTER TABLE ' | Everything.table_name | "ADD column_name column-definition."immediately run a string;
end loop;
end;
-
How to make easy tabs to access?
Hello! Earlier this morning, I removed some old bookmarks that were automatically on Mozilla when I installed a few months ago. But maybe that's what caused the problem - I don't know. But I know that it is not as easy to move from page to page, as it used to be now. Initially, it was extremely difficult to find an 'x' to exit at the upper right. I finally corrected somewhat by changing some of my options in Mozilla, etc. But I still don't like how the page is filled up to the top of the computer desktop laptop. I don't like how I need to switch to another page. I don't like how other tabs sometimes can't be seen until I click to the top in the upper right corner. Maybe what I need to do is to uninstall Mozilla and then reinstall it. Then I won't have to worry about how understand how manually to get it to the condition it was at the beginning. I think I'll do that later today.
Sometimes the file that stores the positions and dimensions of the window becomes corrupt and Firefox can be much too big for the screen.
You can try to resize Firefox using the window control menu, which appears usually when you press Alt + space. Maximize the window should adapt to the available space, but for a resizable window, you may need to use different Move and size controls to get it again in a sensitive place.
If this does not work, you can try this:
Open the settings folder (AKA Firefox profile) current Firefox help
- button "3-bar" menu > "?" button > troubleshooting information
- (menu bar) Help > troubleshooting information
- type or paste everything: in the address bar and press Enter
In the first table of the page, click on the view file"" button. This should launch a new window that lists the various files and folders in Windows Explorer.
Leave this window open, switch back to Firefox and output, either:
- "3-bar" menu button > button "power".
- (menu bar) File > Exit
Pause while Firefox finishing its cleanup, then rename xulstore.json to something like xulstore.old. If you see a file named localstore.rdf, rename this to localstore.old.
Launch Firefox back up again. Windows normally appear?
-
How to make graphic XY interpret several plots of a While loop
I am a student of Georgia Tech researching prefabricated FETs, relatively new to LabVIEW, and I write a LabVIEW vi for the characteristics of output. Basically, a curve of Ids vs Vds with Vgs (curve tracer) evolution. I'm controlling a power supply via GPIB to bias the door while using another supply/power meter via GPIB to vary Vds while obtaining the IDs. My program is working as needed with one exception. After that I built my data table, my XY Graph interprets the data in the form of a plot and during the interpolation will connect all points of data together, as shown in the attached picture. I would like the chart to interpret the data in several plots in this way I can position the sliders along each plot for other parameters. I have also attached my vi if necessary. Any suggestions on how I can fix this?
~ jdamato3
Because you know from the start how much data will be in the plots, you can initialize the structure of final data once before beginning to loops. Now, the size of the data in the shift register structure is invariable for the duration of the race. It's a good thing!
In the previous implementation, each table grows with each added item, and given that the tables must be contiguous in memory, each culture operation is likely to require a new copy of the structure of the whole of the data in memory. The program will be spent most of his time to allocations of memory instead of actual work. (no much here since the tables are short, but imagine MB of data and it will become all very expensive and slow).
Here is a modification of the example. (remember that the data containing NaN show on graphs, thus giving the desired effect).
-
That makes the option the Minimum processor state in the box options advanced a power Plan?
Original title: the Minimum processor state
What does the 'State of the Minimum processor' option in the Advanced Options of a power Plan area? If I put it at 50%, this means that Windows will feed the processor of the unnecessary calculations just to keep 50% of its capacity? If so, why would it be of any use? If this isn't the case, then what is its role?
Thanks for any clarification,
Rifdhan
Hi Rifdhan,
The main reason you would set your option of the processor State Minimum to superior to the minimum (e.g. 50%) is if you run CPU intensive programs very and they would not work well at lower States of CPU.Processors do not require a constant stream of information to operate at a certain speed. For example, if you have a 2.0 ghz processor and you set the State of minimum CPU at 50%, the lowest ever, it will fall to East 1.0 ghz, even at idle.With your minimum fixed at 50% and maximum set to 100%, the real speed it works rest between these two values and the current amount of life battery will be factor in how quickly he chooses to run an average of 75%.If you set your minimum to 5% and up to 100%, it will go down very low to preserve the life of the battery.Hope this helps to understand how it works and I hope someone else can help to further clarify. -
Trigger to make a difference on the DML statements
Hello
I use a trigger on a table:
Here is the Code:
CREATE or REPLACE TRIGGER test001 AFTER INSERT OR UPDATE OR DELETE ON tabletest001 FOR EACH ROW WHEN (new.org = 43) DECLARE ..... BEGIN IF DELETING THEN INSERT INTO TEMP001 VALUES(.....); END IF; IF INSERTING THEN ... END IF; IF UPDATING THEN ..... END IF; EXCEPTION WHEN OTHERS THEN .... END;
When the trigger is called to remove the operating instructions inside
IF DELETING THEN INSERT INTO TEMP001 VALUES(.....); END IF;
may not have performed. It is a simple insert statement on a temporary table.
While his work very well for surgery Update and Delete and respective statements are also get executed.
Help, please.
Possible cause: a DELETE event trigger is not 'new', then the condition values "WHERE (new.org = 43)" is never true.
-
Home page MSN and ebay United Kingdom format. How to make default both for the United States
I have new HP Desktop; Default page MSN and ebay only come to the United Kingdom... want to USA format for default. How can I change this?
Install the following Microsoft hotfix that will solve WE MSN as your home page:
http://IE8.MSN.com/Microsoft/Internet-Explorer-8/en-us/IE8.aspx
Open the following link and select 'My country' as United Staes:
-
How can I make easier to get mysite validated to W3C
I was using dreamweaver for a few months. I use it to develop my website http://www.nba2kworld.net. However, when I try to validate to the w3c, I have some mistakes like that. How to remove this warning
It's pretty simple. Go to Code view and
- remove the role = "banner".
- remove the role = "navigation".
- remove the role = "main".
Save the document.
Nancy O.
-
make a query in an update statement
Hello my friends
I have a table "encompasses": continent, country, percentage
I want to exchange the counties in Asia and Europe, just by an update.
I wrote
I know that is not correct, Please rewrite the query if possibleUPDATE encompasses en1 join encompasses en2 on en1.country=en2.country SET en1.country = en2.country,en2.country1=en1.country WHERE en1.continent="Europe" and en2.continent="Asia";
Thank you, im using oracle 11g and ubuntu12------------------------------------------------------- -- File created - Monday-May-13-2013 -------------------------------------------------------- -------------------------------------------------------- -------------------------------------------------------- CREATE TABLE "intern"."ENCOMPASSES" ("COUNTRY" CHAR(2), "CONTINENT" VARCHAR2(20), "PERCENTAGE" NUMBER) COMMENT ON COLUMN "intern"."ENCOMPASSES"."COUNTRY" IS 'the country code' COMMENT ON COLUMN "intern"."ENCOMPASSES"."CONTINENT" IS 'the continent name' COMMENT ON COLUMN "intern"."ENCOMPASSES"."PERCENTAGE" IS 'percentage, how much of the area of a country belongs to the continent' COMMENT ON TABLE "intern"."ENCOMPASSES" IS 'information to which continents a country belongs' REM INSERTING into intern.ENCOMPASSES SET DEFINE OFF; Insert into intern.ENCOMPASSES (COUNTRY,CONTINENT,PERCENTAGE) values ('cx','Asia',100); Insert into intern.ENCOMPASSES (COUNTRY,CONTINENT,PERCENTAGE) values ('eg','Asia',10); Insert into intern.ENCOMPASSES (COUNTRY,CONTINENT,PERCENTAGE) values ('ge','Asia',100); Insert into intern.ENCOMPASSES (COUNTRY,CONTINENT,PERCENTAGE) values ('id','Asia',100); Insert into intern.ENCOMPASSES (COUNTRY,CONTINENT,PERCENTAGE) values ('ad','Europe',100); Insert into intern.ENCOMPASSES (COUNTRY,CONTINENT,PERCENTAGE) values ('al','Europe',100); Insert into intern.ENCOMPASSES (COUNTRY,CONTINENT,PERCENTAGE) values ('at','Europe',100); Insert into intern.ENCOMPASSES (COUNTRY,CONTINENT,PERCENTAGE) values ('ba','Europe',100); Insert into intern.ENCOMPASSES (COUNTRY,CONTINENT,PERCENTAGE) values ('be','Europe',100); Insert into intern.ENCOMPASSES (COUNTRY,CONTINENT,PERCENTAGE) values ('bg','Europe',100); Insert into intern.ENCOMPASSES (COUNTRY,CONTINENT,PERCENTAGE) values ('by','Europe',100);
best, davidWheel thunder of Anton ;) (there are more examples in the links posted by fac586):
SQL> select * 2 from encompasses; CO CONTINENT PERCENTAGE -- -------------------- ---------- cx Asia 100 eg Asia 10 ge Asia 100 id Asia 100 ad Europe 100 al Europe 100 at Europe 100 ba Europe 100 be Europe 100 bg Europe 100 by Europe 100 aa USA 100 bb USA 100 ca ORCL 100 14 rows selected. SQL> -- SQL> update encompasses 2 set continent = ( select 'Asia' from dual where continent = 'Europe' 3 union all 4 select 'Europe' from dual where continent = 'Asia' 5 ) 6 where continent in ( 'Asia', 'Europe' ); 11 rows updated. SQL> SQL> SQL> -- SQL> select * 2 from encompasses; CO CONTINENT PERCENTAGE -- -------------------- ---------- cx Europe 100 eg Europe 10 ge Europe 100 id Europe 100 ad Asia 100 al Asia 100 at Asia 100 ba Asia 100 be Asia 100 bg Asia 100 by Asia 100 aa USA 100 bb USA 100 ca ORCL 100 14 rows selected.
-
Display background running on the UI threads
Hello
Sometimes I get the situation, that an action of the user needs time to perform. So I put this work to a task or Service.
I want to inform the user, that its action is still ongoing. Just a simple ProgressIndicator.
I know how to do it with a single task, but theoretically, there could be multiple tasks running, even some who were not triggered by the action of the user.
So I want a similar thing as in Eclipse or IntelliJ: a 'background' control, which displays all running threads.
Y at - it an easy way to do it, I mean from the perspective of Service/task/Thread, not the user interface.
Do I need to record each scheduled thread that I start control, for example, when it is scheduled?
Should I derive from task to make this logic?
Is there a way to "look" all discussions?
What is the best approach?
My idea was to add each task to the control. And control of listening to the property running. When it is finished, it is removed from the list of observable controls.
But what of the simple Threads, which can be started somewhere outside the Thread of the JavaFX Application?
For the more general part of the question (of Threads that can be lit outside the Thread of the JavaFX Application):
I've never worked with this part of the Thread API, but the Threads belong to the ThreadGroups. You can retrieve the group that belongs to a Thread with Thread.getThreadGroup (). ThreadGroups are hierarchical; each ThreadGroup except the top-level ThreadGroup has a ThreadGroup parent (ThreadGroup.getParent ()) and you can get references to all children with ThreadGroup.enumerate (ThreadGroup []) ThreadGroups. Wire also has a getState() method that returns an instance of the enum Thread.State.
Of course, none of this is observable in the sense of JavaFX properties, so you should probably periodically this survey instead of being able to listen passively to state changes.
For the easier part, a few ideas:
I did something that is conceptually similar to what you're trying to do. I have a client-server application in which the data model communicates with a remote EJB service layer. All calls to the service layer are threaded. The model exposes an IntegerProperty represents the number of tasks that are pending (i.e. waiting to be executed or running). Most of the calls to the model to result in the creation of a task which the call() method runs on the remote service. The relevant parts of the model look like this:
public class Model { private final ExecutorService executorService ; private final IntegerProperty pendingTasks ; // ... public Model() throws NamingException { // ... executorService = Executors.newSingleThreadExecutor() ; pendingTasks = new SimpleIntegerProperty(0); } private void addListenersToTask(final Task> task) { task.stateProperty().addListener(new ChangeListener
() { @Override public void changed(ObservableValue extends State> observable, State oldValue, State newValue) { State state = observable.getValue(); if (state == State.SUCCEEDED) { decrementPendingTasks(); task.stateProperty().removeListener(this); } else if (state == State.FAILED) { task.stateProperty().removeListener(this); try { context.close(); } catch (NamingException exc) { System.out.println("Warning: could not close context"); } status.set(ConnectionStatus.DISCONNECTED); } } }); } private void scheduleTask(Task> task) { addListenersToTask(task); incrementPendingTasks(); executorService.submit(task); } private void decrementPendingTasks() { if (! Platform.isFxApplicationThread()) { throw new IllegalStateException("Must be on FX Application thread"); } if (pendingTasks.get()<=0) { throw new IllegalStateException("Trying to decrement non-positive number of pending tasks"); } pendingTasks.set(pendingTasks.get()-1); } private void incrementPendingTasks() { if (! Platform.isFxApplicationThread()) { throw new IllegalStateException("Must be on FX Application thread"); } pendingTasks.set(pendingTasks.get()+1); } public int getNumberOfPendingTasks() { return pendingTasks.get() ; } public ReadOnlyIntegerProperty numberOfPendingTasksProperty() { return pendingTasks ; } // ... } All jobs are scheduled to run by calling the scheduleTask (...) method above, which increments the property pendingTasks, and adds a listener to decrement it when it is finished. The only way for tasks to fail in this application is whether the remote service goes down (the other exceptions are thrown by tasks), this is why I close the naming failure context, and there is currently no functionality to cancel tasks. The code will have to change to meet the cancellation or failure, if this isn't the case.
Of course, you could do more than a simple counter here using similar techniques. For example, you could keep a
ObservableList for the tasks, add a task to the list when it is submitted and remove it when it is finished. Then, you could provide this list to control which can display the status of each task. Another option could be to write a wrapper for ExecutorService that has implemented this feature, rather than to implement in your model. (I can elaborate a little if it is not clear, but I have not actually tried it myself). If you somehow exposed this wrapper ExecutorService to the entire application and used for all your threading (which he is called to leave FXApplication thread or not) then you could at least be aware of these threads and should be able to monitor their relatively easily. All threads that were not executed via your wrapper ExecutorService would still be difficult to control.
Not sure how much help that is.
-
How to pause the timer thread...
Hello
I want to make a break the "timer" thread... or I can tell want to set mode 'waiting' and then notify when something is filled.
_CatchTimer timer = new Timer();
CatchAppNameTimer _catchTimerTask = new CatchAppNameTimer (_catchTimer);
_catchTimer.schedule (_catchTimerTask, 0, 5000);My "TimerTask (_catchTimerTask)" whenever displays a Popup...
This popup form has two buttons - unlock, undo.
Basically I want that, until the user clicks on... a the unlock / cancel btn, thread prepares time on standby... when the user click on open it / cancel... only after then time button thread gets notify.
I am currently using a Boolean variable in the run method of "timertask"... to handle the deadlock situation... it's TimerTask called in every few seconds... even when the popup screen showed...
As follows:
public void run()
{
GlobalSingleton obj = null;
obj = GlobalSingleton.getInstance ();
If (obj.getShowDialog ())
return;
unlockField();
}When the first "unlockFiled()" called... I put a Boolean variable as true (using Runtime store)... whose value is extracted by the getShowDialog() method. and in
fieldChanged (field field, int context) {} method of two Unlock / Cancel button... I put Boolean value of var as wrong... by calling...
GlobalSingleton obj = null;
obj = GlobalSingleton.getInstance ();
obj.setShowDialog (false);But the right approach is "timer task" should not be repeated... until the user either unlock / cancel button and the control becomes out of {} fieldChanged (field field, int context) method.
should I use a differnet thread to manage the... wait - notify operations on the Timer object... based on a Boolean variable. I hv already tried this approach... but impossible to get a solution...
I will be gratefull for your suggestions...
Kind regards.
I wouldn't use a timer for this job, I would use a Thread running continuously. The wire would be just "sleep" for a second, then check.
In regards to your screen, you have two choices.
(1) the easiest is simply put your app in the foreground. This means that you can actually leave the currently running Thread. Because if your application is in the foreground, it will not try to block.
With this approach, the screen that you view will be a simple screen and you can code like that.
When the user enters the PIN code, you can make the activity on the native application.
(2) the other option is to use a Global context screen. It's possible but more complicated to code and I see no benefit to this approach (1), except that he's looking for a little more "pleasant". But I don't think that "kindness" is important to you.
As indicated on the other thread, I don't know how to close the native application. But who needs to be discussed on the other Thread. Have this concentration of Thread on sort how to get your screen to superimpose the native application after checking every second. The approach I have to do it and a lot easier than trying to use a timer task.
-
Execution of sequential operations to parallel groups of Threads
I have the following scenario, which must be changed as soon as possible:
1. a group of sequential threads runs (contains 3-wire)
2. a sequential group of other threads is running (contains 2-wire)
3. a group of parallel threads is running (contains 9 wires such as producers and consumers of threads applied properly)
Why I created this scenario?
To run a particular thread first (point-1: containing 3-wire), after their treatment is done I needed to run another 2-wire (point-2: containing 2 wires). If and only if 1 and 2 points are covered, I required to deal with-3 points.
Initially, I required to run all threads for parallel operations, but I left this idea that parallel threads are run simultaneously.
For the situation described above everything works smoothly until there was a problem.
Why do I need to change the above scenario?
Sometimes, I get an Exception that can be handled well in the case of parallel threads. While the same Exception if I get in the sequential threads that becomes unmanageable. Since then, all other sequential treatments of threads comes under condition of waiting until the end of the first.
So, I need to take advantage of the parallel threads, but I chose this path to be easy which became difficult to handle the situation for the application.
So, I need to create such a scenario, in which I need to run different parallel threads for a fixed order. For example:
Order-1 = process the first 3 parallel threads
Order-2e = process 2 parallel threads
Order-3e = process the next 9 parallel threads
Also, the above case is somewhat limited, although I need a generic solution for this. As if in the future, I want to add more than 2-wire command-1 or if I remove still some discussions for any order must be execution of the sequence of groups as you want.
Is it possible in java through which we can make a group of parallel threads that can be executed to order we can specify?
I have the code snippet following, if you can help me to change:
Level-1
[] Thread = Thread [list1.size (new)];
int j = 0;
{for (List1.Size ())}
Object delegator1 = new Object("Level-1");
Thread th = new Thread (delegator1);
discussions [j] = th;
Th.Start ();
j ++ ;
}
for (thread Threading: thread) {}
thread. Join();
}
Level-2
son = new Thread [list2.size ()];
j = 0;
{for (List2.Size ())}
Object delegator2 = new Object("Level-2");
Thread th = new Thread (delegator2);
discussions [j] = th;
Th.Start ();
j ++ ;
}
for (thread Threading: thread) {}
thread. Join();
}
Level 3 & 4-> producer-consumer applied using wait-notify works very well.
{for(list3.) Size())}
Object delegator3 = new Object ("level 3 & 4")
Thread th = new Thread (delegator3);
Th.Start ();
}
I want these different levels to run at the same time but if first level finishes off the second level must eventually runs.
Published by: 990484 on February 26, 2013 09:45If you just want to wait for a set of threads end, for example, use a CountDownLatch in the main thread, initialized to the number of threads. The main thread waits then each thread to complete and to warn the latch.
Repeat for the next series.
Maybe you are looking for
-
How to downgrade to v31.0?
RoboForm tells me that I can not load their toolbar in V32.0 and go down to v31.0 how/where can I find the v31.0 to download?
-
Can I import data from face recognition that I did it on my MacBook to my new iMAC?
Can I import data from face recognition that I created on my MacBook to my new iMAC? Thank you
-
Running on Windows XP HOME SP3, with updates to date (30/08/2013). I tried in vain to find this driver so that I can use USB2. The chipset of the PCI card - USB 2 is ALi. I tried to look at the site of ALi but in vain except re - runs to third parti
-
Unsuccessful error code, installation 1601, Vista SP2
I have Vista SP2. My system is configured to accept Windows updates automatically. I recently started getting error code 1601 (impossible) to find the installer of windows. I tried searching on the MS knowledge base but keep is headed towards a s
-
BlackBerry smartphones how synchronize us outlook 'contacts' not 'address book '?
Hello I have desktop 6.0.0.285 software, and it seems that there is no option to synchronize contacts... single address book... did I miss something blinding?