1、 了解系統調用fork()、execl()、exit()、getpid()和waitpid()的功能和實現過程 2、 編寫一段程序實現以下功能: a) 使用系統調用fork()創建兩個子進程 b) 父進程重復顯示字符串”parent:”,并使用函數getpid()顯示自己的進程ID。 c) 兩個子進程分別重復顯示字符串”child:”,并使用函數getpid()顯示自己的進程ID 3、 編寫一段程序實現以下功能: a) 使用系統調用fork()創建一個子進程 b) 子進程顯示自己的進程ID和字符串": The child is calling an exec.\n",然后通過execl()調用系統命令ps顯示當前運行的進程情況,從而更換自己的執行代碼,最后調用exit()結束。 c) 父進程顯示自己的進程ID和字符串” ": The parent is waiting for child to exit.\n ",然后調用waitpid()等待子進程結束,并在子進程結束后顯示”The parent exit.\n
上傳時間: 2013-12-18
上傳用戶:葉山豪
The book "The Finite Difference Time Domain for Electromagnetics" by Karl Kunz and Raymond Luebbers, CRC Press, 1993, contains an FDTD code and output files in Appendix B. The same code and output files are contained in this directory.
標簽: Electromagnetics Difference The Luebbers
上傳時間: 2013-12-29
上傳用戶:chongcongying
Implemented BFS, DFS and A* To compile this project, use the following command: g++ -o search main.cpp Then you can run it: ./search The input is loaded from a input file in.txt Here is the format of the input file: The first line of the input file shoud contain two chars indicate the source and destination city for breadth first and depth first algorithm. The second line of input file shoud be an integer m indicate the number of connections for the map. Following m lines describe the map, each line represents to one connection in this form: dist city1 city2, which means there is a connection between city1 and city2 with the distance dist. The following input are for A* The following line contains two chars indicate the source and destination city for A* algorithm. Then there is an integer h indicate the number of heuristic. The following h lines is in the form: city dist which means the straight-line distance from the city to B is dist.
標簽: Implemented following compile command
上傳時間: 2014-01-01
上傳用戶:lhc9102
Robustnesstochangesinilluminationconditionsaswellas viewing perspectives is an important requirement formany computer vision applications. One of the key fac-ors in enhancing the robustness of dynamic scene analy-sis that of accurate and reliable means for shadow de-ection. Shadowdetectioniscriticalforcorrectobjectde-ection in image sequences. Many algorithms have beenproposed in the literature that deal with shadows. How-ever,acomparativeevaluationoftheexistingapproachesisstill lacking. In this paper, the full range of problems un-derlyingtheshadowdetectionareidenti?edanddiscussed.Weclassifytheproposedsolutionstothisproblemusingaaxonomyoffourmainclasses, calleddeterministicmodeland non-model based and statistical parametric and non-parametric. Novelquantitative(detectionanddiscrimina-ionaccuracy)andqualitativemetrics(sceneandobjectin-dependence,?exibilitytoshadowsituationsandrobustnesso noise) are proposed to evaluate these classes of algo-rithms on a benchmark suite of indoor and outdoor videosequences.
標簽: Robustnesstochangesinillumination conditionsaswellas perspectives requirement
上傳時間: 2014-01-23
上傳用戶:whenfly
來自澳大利亞Qeensland大學的計算機視覺Matlab工具箱。 This Toolbox provides a number of functions that are useful in computer vision, machine vision and related areas. It is a somewhat eclectic collection reflecting the author s personal interest in areas of photometry, photogrammetry, colorimetry. It covers functions such as image file reading and writing, filtering, segmentation, feature extraction, camera calibration, camera exterior orientation, display, color space conversion and blackbody radiators. The Toolbox, combined with MATLAB and a modern workstation computer, is a useful and convenient environment for investigation of machine vision algorithms. It is possible to use MEX files to interface with image acquisition hardware ranging from simple framegrabbers to Datacube servers.
標簽: Qeensland functions provides Toolbox
上傳時間: 2015-09-30
上傳用戶:qb1993225
how to extend an OLE DB consumer template class and make it much easier to use in applications. I had also explained how you can utilize the power of C++ exception-handling feature to make your work easier, especially in error handling. It was just a small class in my last article.
標簽: applications consumer template extend
上傳時間: 2014-11-26
上傳用戶:royzhangsz
CFlowchartEditor is an extension of CDiagramEditor. CDiagramEditor is a vector editor, with a CWnd-derived window (CDiagramEditor), a data container (CDiagramEntityContainer) holding the draw-objects, undo stack and managing copy and paste, and objects derived from CDiagramEntity representing objects drawn on screen. CDiagramEditor lacks one feature (that is difficult to implement in both simple and general fashion) - links. Manually maintaining links in a - for example - flowchart or network topography map is unwieldy. Therefore, I ve created a reference implementation for one way of adding this functionality.
標簽: CDiagramEditor CFlowchartEditor extension CWnd-d
上傳時間: 2015-11-21
上傳用戶:氣溫達上千萬的
AdaBoost is an efficient tool in machine learning. It can combine a series of weak learners into a strong learner. Besides pattern classification, it also can be applied into feature selection. This document explains the use of AdaBoost.
標簽: efficient AdaBoost learning learners
上傳時間: 2013-12-06
上傳用戶:小寶愛考拉
This document is intended to serve as an introduction to Wavelet processing through a set of Matlab experiments. These experiments will gives an overview of three fundamental tasks in signal and image processing : signal, denoising and compression. These scripts are selfs contents (needed additional Matlab functions can be downloaded while reading the lectures). Each one of these five lectures should take between 1h and 2h in order to tests the various features of the scripts. One should copy/paste the provided code into a file names e.g. tp1.m, and launch the script directly from Matlab comand line > tp1 . Some of the scripts contains "holes" that you should try to fill on your own. I also provide the complete correction of these lectures as a set of Matlab scripts, but you should try as much as possible to avoid using them.
標簽: introduction processing document intended
上傳時間: 2016-03-22
上傳用戶:qlpqlq
// // Histogram Sample // This sample shows how to use the Sample Grabber filter for video image processing. // Conceptual background: // A histogram is just a frequency count of every pixel value in the image. // There are various well-known mathematical operations that you can perform on an image // using histograms, to enhance the image, etc. // Histogram stretch (aka automatic gain control): // Stretches the image histogram to fill the entire range of values. This is a "point operation," // meaning each pixel is scaled to a new value, without examining the neighboring pixels. The // histogram stretch does not actually require you to calculate the full histogram. The scaling factor // is calculated from the minimum and maximum values in the image.
標簽: Sample Histogram Grabber sample
上傳時間: 2013-12-15
上傳用戶:ryb