Quantitative Analysis
Parallel Processing
Numerical Analysis
C++ Multithreading
Python for Excel
Python Utilities
Services
Author

I. Installation.
1. Directory structure.
2. Setting up development environment.
A. Windows notes.
B. Ubuntu notes.
a. Installing double monitors for Linux Ubuntu.
II. Threading primitives.
III. NonBlockingQueue.
IV. ThreadPool.
V. ThreadMaster.
VI. OTS Scheduler.
VII. Bibliography
Downloads. Index. Contents.

Installing double monitors for Linux Ubuntu.


tep 1. When the computer is started, at least at some stage of the start up process each of the monitors should display some start up information. If this does not happen then something is wrong with the hardware or the wire connections.

Step 2. After the Ubuntu is loaded, there are one of the following three possibilities:

a. Single-screen workspace duplicated on both monitors;

b. Single-screen workspace displayed on one monitor and the second monitor is black;

c. Two-monitor workspace.

In case "c" these instructions are not necessary.

In case "a" proceed to next step.

The case "b" means that one needs to download and install the driver for the graphic card and Ubuntu (and possibly restart).

Step 3. After the case "a" is achieved, one needs to extend the workspace to the second monitor. The following session illustrates the procedure.

konstantin@DesktopTwo:~$ xrandr

Screen 0: minimum 320 x 200, current 1600 x 1200, maximum 3200 x 1200

DFP1 connected 1600x1200+0+0 (normal left inverted right x axis y axis) 367mm x 275mm

1600x1200 60.0*+

1400x1050 60.0

1280x1024 75.0 60.0 60.0

1440x900 59.9

1280x960 60.0

1152x864 75.0 60.0

1280x768 59.9

1280x720 60.0

1024x768 75.0 60.0

800x600 75.0 60.3

720x480 60.0

640x480 75.0 60.0

640x400 75.1 59.9

512x384 60.0 74.9

400x300 75.0 60.7

320x240 75.6 60.0

320x200 75.5 60.1

DFP_EXTTMDS connected 1600x1200+0+0 (normal left inverted right x axis y axis) 367mm x 275mm

1600x1200 60.0*+

1400x1050 60.0

1280x1024 75.0 60.0 60.0

1440x900 59.9

1280x960 60.0

1152x864 75.0 60.0

1280x768 59.9

1280x720 60.0

1024x768 75.0 60.0

800x600 75.0 60.3

720x480 60.0

640x480 75.0 60.0

640x400 75.1 59.9

512x384 60.0 74.9

400x300 75.0 60.7

320x240 75.6 60.0

320x200 75.5 60.1

konstantin@DesktopTwo:~$ xrandr --output DFP1 --off

konstantin@DesktopTwo:~$ xrandr --output DFP1 --auto --right-of DFP_EXTTMDS

The first command "xrandr" displays the necessary information. The subsequent commands have to be modified accordingly. The second command "xrandr --output DFP1 --off" disables one of the monitors. It becomes black. The parameter DFP1 comes from the information displayed after the first statement. The third command extends the first monitor's workspace to the second monitor. At this stage the xrandr may complain. It may say that the limitation on the total workspace area is exceeded and refuse to extend the workspace. If that happens then edit the xorg.conf file (located in /etc/X11 for my ubuntu installation) as explained next.

The following is author's xorg.conf with added lines in bold. Note that the "Virtual" field is the double area of the "Modes" field. Also, the contents of the "Modes" field came from the above session.

Section "Monitor"

Identifier "Configured Monitor"

EndSection

Section "Screen"

Identifier "Default Screen"

Monitor "Configured Monitor"

Device "Configured Video Device"

DefaultDepth 24

SubSection "Display"

Modes "1600x1200"

Virtual 3200 1200

EndSubSection

EndSection

Section "Module"

Load "glx"

EndSection

Section "Device"

Identifier "Configured Video Device"

Driver "fglrx"

EndSection

After modifying the file, restart the computer and attempt the session again.





Downloads. Index. Contents.


















Copyright 2007