Impact on the Thread.sleep processor

Hi all

Someone knows what this impact of the Thread.sleep on cpu perfemance BB?

Thank you

UDI

Thread.Sleep simply takes the current thread on the Scheduler to send for a certain period of time.

I guess my best answer is that there no direct impact on the performance CPU - CPU runs all the time, at the same speed than it was before.

Tags: BlackBerry Developers

Similar Questions

  • Not closed after the thread.sleep call dialog box

    Hello

    I am display the dialog box and then call thread.sleep (5000), after I called two alerts more dialogue. The problem is when it displays the first dialogue onclick of the button ok its not be closed and its second dialog box open automatically. you have no idea.

    Code example

    try {}

    Dialog.Alert ("HI");

    business logic

    }

    catch

    {

    Thread.Sleep (3000);

    Dialog.Alert ("Hello");

    }

    After the display "Hi", I'm not able to close this dialog box. I tried to put the Thread.sleep inside DMT invlodLater(), no luck

    Any idea?

    Not sure what you mean by there.

    If you want to encode a thread. Sleep (), or waiting for a similar block of code, you must be on the thread of events.  And you can not do without starting another Thread.

    Maybe this will help:

    http://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865

  • threads, processes and the dual core processors

    Hello

    We use the CVI and we want to use multithreading. The application is running on a dual core processor, so the question is if it is possible to define the basis on which the thread is running? Does anyone know if it is possible to start a program, process, or a thread on a predefined kernel?

    If this is not possible with the CVI, is it possible directly with the Windows API?

    Thank you

    Oliver

    AWESOME, thanks I'll try.

    Greetings

    Oliver

  • keyboard & mouse freeze after the mode 'sleep', using Windows Vista 64 home premium

    keyboard & mouse freeze after the mode "sleep", using Windows Vista 64 home premium.  I received once posted this question, an answer of "fix" to a thread that has worked.  Unfortunately, I deleted the thread. I swapped the USB connectors for mouse and keyboard, but that didn't change anything.  Could someone please re - send the wire?  I promise you that I'm deleting it this time.

    Thank you very much

    E-mail address is removed from the privacy *.

    Hi RICH0214,

    Follow these methods.

    Method 1: Follow the steps in the article.

    Device Manager does not display devices that are not connected to the Windows XP-based computer

    http://support.Microsoft.com/kb/315539 (applies to Windows Vista)

    Method 2: Scan the file system (CFS) auditor to repair corrupted files.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Method 3: Create a new user account.

    Create a user account

    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account

    If the problem is resolved in a new user account, and then follow the article on how to fix a corrupted user account.

    Difficulty of a corrupted user profile

    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

  • ulitmate local Vista only after the mode "sleep" loses the IP address each time.

    Ulitmate Vista wired ethernet.  After the mode 'sleep', 'local only' on awake.  Loses to IP address each time.  IP address needs to be reset.

    Hi C.Jaye,

    You can check out the following link and try the steps to solve the problem:

    http://social.answers.Microsoft.com/forums/en-us/vistanetworking/thread/f21fcdda-4372-469d-b983-f4bd50d7f81d

    You can also read the following article and check if it helps:

    Windows Vista cannot obtain an IP address from certain routers or some non-Microsoft DHCP servers

    http://support.Microsoft.com/kb/928233

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to use the Thread in infinite ListField

    This is my code of listfield .
    
    package mypackage;
    
    import net.rim.device.api.command.CommandHandler;
    import net.rim.device.api.command.ReadOnlyCommandMetadata;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.component.table.SimpleList;
    import net.rim.device.api.ui.container.MainScreen;
    
    public class SimpleListDemo extends UiApplication {
        public static void main(String[] args) {
            SimpleListDemo theApp = new SimpleListDemo();
            theApp.enterEventDispatcher();
        }
    
        public SimpleListDemo() {
            pushScreen(new SimpleListScreen());
        }
    
        class SimpleListScreen extends MainScreen {
            private SimpleList listField;
    
            public SimpleListScreen() {
                super(Manager.NO_VERTICAL_SCROLL);
                setTitle("Simple List Demo");
                add(new LabelField("Blackberry Team", LabelField.FIELD_HCENTER));
                add(new SeparatorField());
                Manager mainManager = getMainManager();
                mainManager.setMargin(0, 0, 0, 50);
    
                listField = new SimpleList(mainManager);
    

    Thread th = new Thread()
    {

    public void run()
    {
    Try
    {
    listField.add ("Mr.Sushil");
    Thread.Sleep (1000);
    listField.add ("Mr.Anantha");
    Thread.Sleep (1000);
    listField.add ("Mr.Himanshu");
    }

    catch (System.Exception e)
    {
    }

    UiApplication.getUiApplication () .invokeLater (new Runnable()
    {
    public void run()
    {
    }});
    }};
    Th.Start ();

              listField.setCommand(new CommandHandler() {
    
                    public void execute(ReadOnlyCommandMetadata metadata,
                            Object context) {
    
                        if (listField.getFocusRow() == 0) {
                            UiApplication.getUiApplication().pushScreen(new P());
                        }
    
                    }
                }, null, null);
    
            }
    
        }
    
    }
    

    found the solution.

  • Thread.Sleep () - no effect

    Hello

    I would ask for your suggestion for the next problem.

    I have a midlet using LWUIT for BB 9900 with OS7.1.

    Inside the midlet, I try to use the following syntax:

    -After startup, viewing a page "loader" with loader animation and during the midlet made certain actions

    -immediately after I display another page (secondForm)

    My problem is that the foirst laoder page disappears very quickly... almost can not see at all.

    What I have is the following:

    private delay led;

    Thread delayThread = new Thread (del);

    ...

    ...

    loaderform. Show();

    delayThread.start ();

    ..

    ..

    delay of private class implements Runnable {}

    public void run()

    {

    try {}

    Thread.Sleep (3000)

    } catch (InterruptedException e)

    {}

    secondForm.show ();

    }

    }

    The result is not ok. It seems that the Sleep() method does any work. There is no delay, as soon as I get

    the second form that appears.

    Anyone have an idea what can be the problem?

    Thanks in advance for your comments,

    Even easier, use this:

    UiApplication.getUiApplication () .invokeLater (yourRunnable, 3000);

  • Termination of the thread

    HELLO developers,

    ublic  class Timer extends Thread
    {
        static boolean isMsgSentMode =true;
        static int timerCount;
        static int count=0;
        int i = 10;
        public void run(){
            try{
                while(isMsgSentMode){
                    if(i==-1)
                    {
                        //TODO
                        // Add the code here
                        // implement the operation needed when the counter reaches to 0
    
                            // sending the query status command only once
    
                            if(count==0)
                            {
                                BluetoothSerialPortScreen.queryStatusCmd();
                            }
                            safeSetLabelText(MsgCenter.SOS_MESSAGE_SEND);
    
                            isMsgSentMode=true;
    
                            // when count greater than 2 it will come out of the loop
    
                            if(count>2)
                            {
                                isMsgSentMode=false;
                            }
                            count ++;
                            //i=10;  // resetting it to -1
                        }
    
                        else
                        {
                            isMsgSentMode=false;
                        }
                    }
                    else
                    {
                        // for testing purpose
    
                        if(!(QueryStatusEntity.getmCurrentModeOfOperation()==3))
                        {
                            System.out.println("Thread is working "+i);
    
                            safeSetLabelText("SOS Will be send in"+ " "+ i+" "+"seconds");
                            Thread.sleep(1000);
                        }
                        else
                        {
                            isMsgSentMode=false;
                        }
                        i--;
                    }
    
                }
            }
    
            catch(Exception e){
    
                System.out.println("Exception has been occured "+e.getMessage());
            }
        }
    
        /**
         *   Used to Modify the sosmessagesendLabelField called from the Thread
         *
         * @param text
         * @return LabelField
         */
    
        public final void   safeSetLabelText( String text) {
            synchronized (UiApplication.getApplication().getEventLock()) {
                SosModeScreen._sosmessagesendLabelField.setText(text);
    
                // based on the text type the setpadding is being changed
    
                if(text.equalsIgnoreCase(MsgCenter.SOS_MESSAGE_SEND))
                {
                    SosModeScreen._sosmessagesendLabelField.setPadding(20, 0, 0, SpotConstants.WIDTH_BY_FOUR);
                }
                else
                {
                    SosModeScreen._sosmessagesendLabelField.setPadding(20, 0, 0, SpotConstants.WIDTH_BY_SIX );
                }
    
            }
        }
    
        /**
         *   For stoping  the thread programtically
         */
    
        public synchronized static void stop()
        {
            isMsgSentMode=false;
        }
    
        /**
         *   For starting the thread programtically
         */
    
        public synchronized static void starts()
        {
            isMsgSentMode=true;
        }
    

    I've set up a thread. that works very well for me, but the problem is that I can't stop this inorder to stop the current thread form execeuting I created a

     public synchronized static void stop()
        {
            isMsgSentMode=false;
        }
    

    Timer.stop using (), I call it but is still the thread is running in the background, need help for this

    Thank you

    sujithRavindran

    There is no sure method to end a thread.

    usually you put into a Boolean variable that you can change from the outside.

    If (! stop)-> stop process set to true and the termination of the thread.

  • Screen 120 Hz when the Thread runs

    I have a screen with a menu if I use an option it reads data from a trip from a page php how to stop running until the data is read and refresh the screen

    my menu

    private final MenuItem leerDatos = new MenuItem("Viajes del Chofer ",
                                    0, 0) {
    
                            public void run() {
                                    ElRecreo.URLChofer = "http://coopelrecreo.com/choferes/CedulaViajes.php?campo=cedula&buscar="
                                                    + ElRecreo.CedulaChofer;
                                    MyThreadRead thread = new MyThreadRead();
                                    thread.start();
                                   /*
                                   if (ElRecreo.isRunning==false){
                                    EditField _viajes = new EditField("" , ElRecreo.URLresult, Integer.MAX_VALUE, Field.EDITABLE);
                                    add(_viajes);
                                    invalidate();
                                }*/
                            }
                    };
    

    And it's the wire

    private class MyThreadRead extends Thread {
                            public void run() {
    
                                    ElRecreo.isRunning=true;
                                    String _Url = "http://coopelrecreo.com/choferes/CedulaViajes.php?campo=cedula&buscar="+ElRecreo.URLChofer;
                                    String _UrlBuscar="";
                                    try {
    
                                            if (ElRecreo.srWAP2 != null && ElRecreo.coverageWAP2) {
                                                    baseURL = _Url;
                                                    _UrlBuscar = getWAP2URL();
                                            }
                                            if (ElRecreo.srWiFi != null && ElRecreo.coverageWiFi) {
                                             baseURL = _Url;
                                             _UrlBuscar  = getWifiUrl();
                                            }
                                          //  StringBuffer sb = new StringBuffer(_UrlBuscar);
                        //    while isRunning{
                            HttpConnection connection = (HttpConnection) Connector.open(_UrlBuscar,Connector.READ_WRITE, true);
                            InputStream inputStream = connection.openInputStream();
                            byte[] responseData = new byte[10000];
                            int length = 0;
                            StringBuffer rawResponse = new StringBuffer();
                            while (-1 != (length = inputStream.read(responseData))) {
                                    rawResponse.append(new String(responseData, 0, length));
                            }
                            int responseCode = connection.getResponseCode();
                            if (responseCode != HttpConnection.HTTP_OK) {
                                    throw new IOException("Codigo invalido:" + responseCode);
    
                            }
                            String result = rawResponse.toString();
                            ElRecreo.URLresult = result;
                            Dialog.alert(ElRecreo.URLresult);
                            ElRecreo.isRunning=false;
                             /*
                             add(new SeparatorField());
     EditField viajes = new EditField("" , ElRecreo.URLresult.toString(), Integer.MAX_VALUE, Field.EDITABLE);
     add(viajes);
     invalidate();
    /*
                                            /*
                                             connection = (HttpConnection) Connector
                                                            .open(_UrlBuscar);
                                            System.err.println(_UrlBuscar);
                                            InputStream input = connection.openInputStream();
                                            DataBuffer buffer = new DataBuffer();
                                            byte[] temp = new byte[1024];
                                            for (;;) {
                                                    int bytesRead = input.read(temp);
                                                    if (bytesRead == -1) {
                                                            break;
                                                    }
                                                    buffer.write(temp, 0, bytesRead);
                                            }
                                            input.close();
                                            connection.close();
                                            ElRecreo.URLresult = buffer.toString();
                                            System.err.println(ElRecreo.URLresult);
                                            System.err.println(ElRecreo.URLresult.toString());
                                            ByteArrayOutputStream output = new ByteArrayOutputStream();
                                            Base64OutputStream boutput = new Base64OutputStream(output);
                                            output.write("data:text/html;base64,".getBytes());
                                            boutput.write(buffer.getArray());
                                            boutput.flush();
                                            boutput.close();
                                            output.flush();
                                            output.close();
                                            ElRecreo.URLresult = boutput.toString();
                                            System.err.println(ElRecreo.URLresult.toString());
                                          add(new SeparatorField());
     EditField viajes = new EditField("" , ElRecreo.URLresult.toString(), Integer.MAX_VALUE, Field.EDITABLE);
     add(viajes);      
    
                                             BrowserSession bSession = Browser.getDefaultSession(); //
                                             bSession.displayPage(output.toString());
                                          */
                                    } catch (IOException e) {
                                            System.err.println("IO Excepcion: " + e.toString());
                                             ElRecreo.isRunning=false;
                                    }
    //)//while
                            }
    
                    }//run
    
    }
    

    I'm tryng several ways to connect that's why several comments suggestions

    TKS in advance

    I solve it with a timer like this

    try{
                                    while(ElRecreo._strop32==null&& i<100) {
                                    thread.sleep(1000);
                                    i++;
                                    }
                                     ObjectChoiceField _op32 = new ObjectChoiceField("", ElRecreo._strop32, 1);
    

    I read the examples that you give me and I do not find any concrete example how implement

    TKS anyway

  • JavaFX binding throws illegal state Exception: not on the thread of Application FX

    Hi all

    I am updating a label of a task using bindings.

    However, when I 'Bind' the label text property with a property of the task, Illegal state exception string is thrown. Saying: this is not not on the thread of JavaFX.

    The Exception occurs whenever I try to set the property of the task of the Interior string.

    Please do not suggest to use the platform. RunLater(). I want to do this through links as the values I am trying to display in the label (later on) could change too frequently, and I don't want to flood the queue of the thread of the user interface with executable objects.

    Please let me know what I'm doing wrong and what I need to change to make it work properly with links. (I'm new to links and concurrency JavaFx API)

    Here is my Code.

    public class MyTask extends Task<String>{
    
        MyTask(){
           System.out.println("Task Constructor on Thread "+Thread.currentThread().getName());
    
    
        }
        private StringProperty myStringProperty = new SimpleStringProperty(){
            {
                System.out.println("Creating stringProperty on Thread "+Thread.currentThread().getName());
            }
        };
        private final void setFileString(String value) {
            System.out.println("Setting On Thread"+Thread.currentThread().getName());
            myStringProperty.set(value); }
        public final String getFileString() { return myStringProperty.get(); }
        public final StringProperty fileStringProperty() {
            System.out.println("Fetching property On Thread"+Thread.currentThread().getName());
            return myStringProperty; }
        
        @Override
        public String call() throws Exception{
            System.out.println("Task Called on thread "+Thread.currentThread().getName());
    
    
           for(int counter=0;counter<100;counter++){
               try{
               setFileString(""+counter);
               }catch(Exception e){
                   e.printStackTrace();
               }
               Thread.sleep(100);
               System.out.println("Counter "+counter);
           }
           return "COMPLETED";
        }
    }
    
    
    public class MyService extends Service<String> {
    
    
        MyTask myTask;
    
        public MyService(){
            System.out.println("Service Constructor on Thread "+Thread.currentThread().getName());
            myTask=new MyTask();
        }
    
        @Override
        public Task createTask(){
            System.out.println("Creating task on Thread "+Thread.currentThread().getName());
            return myTask;
        }
    
    }
    
    
    public class ServiceAndTaskExperiment extends Application {
        @Override
        public void start(Stage stage) throws Exception {
            Parent root = FXMLLoader.load(getClass().getResource("Sample.fxml"));
            Scene scene = new Scene(root);
            stage.setScene(scene);
            stage.show();
        }
        public static void main(String[] args) {
            launch(args);
        }
    }
    
    
    public class SampleController implements Initializable {
        @FXML
        private Label label;
    
        @FXML
        private void handleButtonAction(ActionEvent event) {
            System.out.println("You clicked me!");
            myTestService.start(); //This will throw out exceptions when the button is clicked again, it does not matter
        }
    
        MyService myTestService=new MyService();
        @Override
        public void initialize(URL url, ResourceBundle rb) {
            label.setText("Hello World!");
            //adding the below Line causes the exception
            label.textProperty().bind(myTestService.myTask.fileStringProperty()); //removing this line removes the exception, ofcourse the label wont update.
        } 
    }
    //sample.fxml
    <?xml version="1.0" encoding="UTF-8"?>
    <?import java.lang.*?>
    <?import java.util.*?>
    <?import javafx.scene.*?>
    <?import javafx.scene.control.*?>
    <?import javafx.scene.layout.*?>
    
    
    <AnchorPane id="AnchorPane" prefHeight="200" prefWidth="320" xmlns:fx="http://javafx.com/fxml" fx:controller="serviceandtaskexperiment.SampleController">
        <children>
            <Button layoutX="126" layoutY="90" text="Click Me!" onAction="#handleButtonAction" fx:id="button" />
            <Label layoutX="126" layoutY="120" minHeight="16" minWidth="69" fx:id="label" />
        </children>
    </AnchorPane>
    
    
    
    

    And it is the output with links on:

    Output: when the link is activated label.textProperty () .bind (myTestService.myTask.fileStringProperty ());

    Service on JavaFX Application Thread constructor

    Creating string on thread JavaFX Application Thread

    Task, Builder on JavaFX Application Thread

    Get the property on request ThreadJavaFX wire

    You clicked me!

    Creating a task on a thread Thread Application JavaFX

    Task called threadThread-4

    Setting on ThreadThread-4

    java.lang.IllegalStateException: not on the application thread FX; currentThread = Thread-4

    at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:237)

    at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:398)

    to javafx.scene.Parent$ 1.onProposedChange(Parent.java:245)

    at com.sun.javafx.collections.VetoableObservableList.setAll(VetoableObservableList.java:90)

    at com.sun.javafx.collections.ObservableListWrapper.setAll(ObservableListWrapper.java:314)

    at com.sun.javafx.scene.control.skin.LabeledSkinBase.updateChildren(LabeledSkinBase.java:602)

    at com.sun.javafx.scene.control.skin.LabeledSkinBase.handleControlPropertyChanged(LabeledSkinBase.java:209)

    to com.sun.javafx.scene.control.skin.SkinBase$ 3.changed(SkinBase.java:282)

    at javafx.beans.value.WeakChangeListener.changed(WeakChangeListener.java:107)

    to com.sun.javafx.binding.ExpressionHelper$ SingleChange.fireValueChangedEvent (ExpressionHelper.java:196)

    at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:100)

    at javafx.beans.property.StringPropertyBase.fireValueChangedEvent(StringPropertyBase.java:121)

    at javafx.beans.property.StringPropertyBase.markInvalid(StringPropertyBase.java:128)

    in javafx.beans.property.StringPropertyBase.access$ 100 (StringPropertyBase.java:67)

    to javafx.beans.property.StringPropertyBase$ Listener.invalidated (StringPropertyBase.java:236)

    to com.sun.javafx.binding.ExpressionHelper$ SingleInvalidation.fireValueChangedEvent (ExpressionHelper.java:155)

    at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:100)

    at javafx.beans.property.StringPropertyBase.fireValueChangedEvent(StringPropertyBase.java:121)

    at javafx.beans.property.StringPropertyBase.markInvalid(StringPropertyBase.java:128)

    at javafx.beans.property.StringPropertyBase.set(StringPropertyBase.java:161)

    at javafx.beans.property.StringPropertyBase.set(StringPropertyBase.java:67)

    to serviceandtaskexperiment. MyTask.setFileString (MyTask.java:24)

    to serviceandtaskexperiment. MyTask.call (MyTask.java:36)

    to serviceandtaskexperiment. MyTask.call (MyTask.java:11)

    to javafx.concurrent.Task$ TaskCallable.call (Task.java:1259)

    at java.util.concurrent.FutureTask.run(FutureTask.java:262)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:615)

    at java.lang.Thread.run(Thread.java:724)

    Output with links removed: (label will not be updated)

    Service on JavaFX Application Thread constructor

    Creating string on thread JavaFX Application Thread

    Task, Builder on JavaFX Application Thread

    You clicked me!

    Creating a task on a thread Thread Application JavaFX

    Task called threadThread-4

    Setting on ThreadThread-4

    Counter 0

    Setting on ThreadThread-4

    1 meter

    Setting on ThreadThread-4

    2 meter

    Setting on ThreadThread-4

    If myStringProperty is bound to the textProperty of etiquette, you can only change it on the Thread of the JavaFX Application. The reason is that change its value will result in a change of the label, and changes of live parts of the graphic scene cannot be performed on the Thread of the JavaFX Application.

    Task and Service classes expose a messageProperty you could use here. The Task class has a updateMessage (...) method that changes the value of the message on the Thread of the JavaFX Application property. It also merges calls in order to prevent the flooding of this thread. If you could do the following in your MyTask.call () method:

    updateMessage(""+counter);
    

    and then in your controller just do

    label.textProperty().bind(myTestService.messageProperty());
    

    If you don't want to use the messageProperty for some reason any (for example you are already using it for something else, or you want to make something similar to a property that is not a string), you must merge the updates yourself. What follows is based on the source code of the task:

    public class MyTask extends Task {
    
         // add in the following:
        private final AtomicReference fileString = new AtomicReference<>();
    
        private void updateFileString(String text) {
            if (Platform.isFxApplicationThread()) {
                setFileString(text);
            } else {
                if (fileString.getAndSet(text) == null) {
                    Platform.runLater(new Runnable() {
                        @Override
                        public void run() {
                            final String text = fileString.getAndSet(null);
                            MyTask.this.setFileString(text);
                        }
                    });
                }
            }
        }
    
       // Now just call updateFileString(...) from your call() method
    }
    
  • How to change the number of processors / cores

    I have virtual machines that I have to move periodically between 3 computers main host that I use:

    1 Intel Core 2 Quad CPU with Windows 7 Home Premium 64 - bit - 1 processor with 4 cores

    2 Intel Core i7-2630QM CPU with Windows 7 Home Premium 64 bit - 1 processor with 4 cores

    3 Intel Core 2 Duo T7700 CPU VT with Windows XP 64 bits - 1 processor with 2 hearts

    Hosts running VMWare workstation 7.

    Most of my virtual machines running XP 32 bit and have been initially created for my 3 platform.

    When I move my machines between computers I see that the parameters of the Virtual Machine for my change of processor in (for me)
    in unpredictable ways. Sometimes it shows 1 processor and gives me a choice of up to 4 cores.
    in other cases (always on a 4 base platform) 1 single processor with 1 core, in other cases, with 1 core 2 processors.

    In most cases, my freedom of choice is limited, because the selection of the number of cores is grayed out.

    When I try to make changes by editing the vmx file, I find them ineffective (no change).

    The other problem I think is that my VMs run VERY SLOWLY on my i7 with 8 GB platform!
    I have no idea if this is related to the improper setting of the number of processores / cores (I'm not able to define
    1-4-hearts and spin with settingsd 1.1 instead).

    Could someone please help me understand how:

    1. check / change the number of processors / threads on an existing virtual machine.

    2. how to set properly for an i7 processor

    Thanks in advance,

    Andrew

    1. providers that create virtual machines are in a race - they assume that customers use this version which proposes to use the virtual processors more ;-)
    For some workloads inside a virtual machine - say Oracle or other database and applications servers such that it is sometimes really good idea to use more than one virtual processor

    2. virtual machines to scale differently with more CPU than the real computers.
    Virtual machines are for host applications.
    This means that the host schedules the time CPU to each virtual machine.
    If you follow this thought that you will see that a virtual machine that uses one virtual processor has a greater chance to run then a VM with 2 virtual processors.
    A VM with 4 cores running on a host with 4 cores will spend a lot of wait time - it may work only when the host reports the application of Workstation 4 hearts are available.

    A virtual machine with only 1 vCPU will probably be able to run all the time without any waiting time.
    This is why usually with a single CPU VMs feel better to the needs of the user.

    This translates into the best practical advice: assign a CPU unless you really notice you need more.

    3. probably, you try to change the values, while the virtual machine is suspended?

    4.
    numvcpus = '8 '.
    cpuid.coresPerSocket = "4".

    We hear two processors with 4 cores of each

    numvcpus = "4".
    cpuid.coresPerSocket = "4".

    means a processors with 4 cores

    numvcpus = '2 '.
    cpuid.coresPerSocket = '1 '.

    We hear two processors with a carrot

    No effect? n ' mind that not all clients can use 2 or more processors
    For example, XP is limited in this respect.
    Some guests may also not change the number of CPUS after what they have been installed

  • How to evaluate the impact of the removal of the CPU?

    One of my clients must remove three (of four) CPU in order to respect the license agreement with Oracle.

    To avoid problems and also for any problems remove the CPU can bring the list, I want to do a study on the possible impacts, especially in the performances, which can cause the removal.

    How can I get this information?

    >
    I really want to do all the tests and get concrete data on what is the real impact. The customer uses about 20% of his salary (cpu + cpu wait) but I know that this does not mean that it can simply cut their treatment at 25% safely.

    Yes, my client has a test environment, but does not have a database of the replay, so it is not possible to perform tests on the workload precisely.

    How can I test without this tool, or at least the collection of data that will give me more specific that CWA information? It should open a SR on MOS?
    >
    There is nothing to open an SR for.

    The type of system change, you're talking about can only be tested on a system that best matches the production system. It has too many interactions between the CPU, memory, cache and external (disk) storage systems to be able to use a system of unpaired test and extrapolate the results.

    You will have to do equivalent performance in order to obtain meaningful results, but these tests should be done on similar systems.

    If I were you I would start by contacting your Oracle support person and identify the actual costs to continue to use your system for 4-processor and costs associated with maybe a 2 - cpu system.

    Then I estimated costs of the work in question in any change of your test system to make it as nearly equivalent to the possible production system and add in the costs of running actually load tests and a fudge factor to take account possible downtime or a financial loss due to the degradation of the system if your estimates are erroneous.

    You find it's cheaper and less risky, to pony just upward at least a 2-processor license. Who would buy at least your client enough comfort and time to design a more reliable long term solution.

  • is the new Apple Watch series1have the same S1 processor than the original

    Is the new Apple Watch series1 have the same S1 processor than the original?

    Hello

    The Apple Watch series 1 has a new processor dual-core S1P and GPU, which is up to 50% faster than the original Apple Watch.

  • If you ask the question and then choose a solution, the thread will be closed or still can you ask more details?

    If you ask the question and then choose a solution, the thread will be closed or still can you ask more details?
    (sometimes, someone answers my question, and I want to mark it as the solution and am not yet quite ready for the thread be closed...)

    If you still experience this issue, you can return to this thread.
    But, you must clear the flag solved .

  • When I get out of my iMac on night he flares upward from the mode sleep at midnight.

    When I get out of my iMac on night he flares upward from the mode sleep at midnight.

    Check your settings in system preferences > energy saver

Maybe you are looking for