Manage processes on the device

The Process Information view shows information about the processes that you select in the Target Navigator view. The view shows the name of the process, its arguments, environment variables, and so on. The view also shows the threads in the process and the state of each thread:

Screen showing the Process Information view, which shows process-specific information.

The Process Information view includes the following other views:

Click the Highlight button (The Highlight button) in the view's toolbar to highlight changes to the display since the last update.

You can change the highlight color in the Colors and Fonts preferences (Window > Preferences > General > Appearance > Colors and Fonts).

Thread Details pane

The Thread Details pane shows information about your selected process's threads, including the thread's ID, priority, scheduling policy, state, and stack usage.

The Thread Details pane shows a substantial amount of information about your threads, but some of the column entries aren't shown by default.

To configure the information shown in the Thread Details pane:

  1. In the Process Information view, click the menu dropdown button ( The Menu icon ).
  2. Select Configure. The Configure dialog appears:

    Screen showing the Configure dialog box in the Process Information view.

  3. You can:
    • Add entries to the view by selecting items from the Available Items list and clicking Add.
    • Remove entries from the view by selecting items in the New Items list and clicking Remove.
    • Adjust the order of the entries by selecting items in the New Items list and clicking Shift Up or Shift Down.
  4. Click OK. The view shows the entries that you specified in the New Items list.

If you right-click on a thread in the Thread Details pane, the menu includes items that let you specify the thread's priority and scheduling algorithm, name, CPU affinity, and inherited CPU affinity:

Screen showing thread options.

Setting the priority and scheduling algorithm:

Screen showing priority and scheduling.

For more information about the available priorities and scheduling algorithms, see Thread scheduling in the BlackBerry 10 OS Microkernel chapter of the System Architecture guide.

You can give the thread a name:

Screen showing setting the thread name.

You can also set the runmask that the thread's children will inherit:

Screen showing inherited CPU affinity.

and its own runmask:

Screen showing CPU affinity.

For more information, see the Multicore Processing User's Guide.

If you right-click on a process in the Target Navigator view or the Thread Details pane, you get similar options, except for setting the thread name. The Thread Details pane enables you to modify thread and process information for individual threads.

Environment Variables pane

The Environment Variables pane provides the values of the environment variables that are set for your selected process.

Process Properties pane

The Process Properties pane shows the process's startup arguments, and the values of the process's IDs: real user, effective user, real group, and effective group.

The process arguments are the arguments that were used to start your selected process as they were passed to your process, but not necessarily as you typed them. For example, if you type ws *.c, the pane might show ws cursor.c io.c my.c phditto.c swaprelay.c, since the shell expands the *.c before launching the program.

The process ID values determine which permissions are used for your program. For example, if you start a process as root, but use the seteuid and setegid functions to run the program as the user jsmith, the program runs with jsmith's permissions. By default, all programs launched from the IDE run as root.

Last modified: 2013-12-21

comments powered by Disqus