用户中心531问题

[b]1 定时器Timer,TimerTask,Timer的内部实现机制,怎么用后台线程来实现定时器,有时间可以去了解一下。[/b]

[b]2 将一个Linux sh程序变成Linux服务,能在服务器重启后仍然能够运行。[/b]etc/rc.d/rc.local 将一个linux任务变成服务,开机就运行。

3 Java Main是一个进程。
Main主线程退出,Java的子线程不会退出。一直会等到线程结束才会退出。所有工作线程的退出会导致主线程的退出,Deamon线程即使存在也会进程退出.

[color=red]4 有时间看下TreeSet的算法和具体实现机制。[/color]

[color=red]5 ClassPathXmlApplicationContext,[/color]
阅读更多

Blankfin 531

03-03

我的Blankfin 531DSP写的定时器中断程序怎么编译没有错误,就是不能执行中断,请大家给帮个忙啊!谢谢rn// 头文件包含rn#include rn#include rn#include rn#include rnrn// LED操作地址定义rn#define pLed (volatile unsigned char *)0x203D0000rn#define pSEG_8_0 (volatile unsigned char *)0x203C4000rn#define pSEG_8_1 (volatile unsigned char *)0x203CC000rn#define pSEG_8_2 (volatile unsigned char *)0x203C8000rn#define pSEG_8_3 (volatile unsigned char *)0x203C0000rnrn// 宏定义rnrnrn// 常量定义rnconst unsigned char NumberData[13] = rn 0x24, 0x7D, 0x16, 0x54, 0x4D, 0xC4, 0x84, 0x75, 0x04, 0x44, 0xFB,rn // 0 1 2 3 4 5 6 7 8 9 .rn 0x00, 0xFF; rn // 全亮 全灭rn unsigned int i=0,j,m,n,Dings=0;rn int led = 0x01; rn rn /********************************************************rn*rn* 函数名 : Init_PLLrn* 函数功能 : 初始化配置BF531的PLL寄存器rn* 函数输入参数 : 无rn* 函数输出 : 无rn* 说明 : 无 rn*rn********************************************************/rnvoid Init_PLL(void)rnrn sysreg_write(reg_SYSCFG, 0x32); //Initialize System Configuration Registerrn rn *pSIC_IWR = 0x0101; // Enable only PLL wakeup interruptrn rn *pPLL_CTL = 0x0200; // MSEL is 14, which gives: VCO of 378 MHz (27*14=378)rn rn *pPLL_DIV = 0x0003; // SSEL is 3, which gives: SCLK of 126 MHz (378/3=126)rn // CSEL is 0, which gives: CCLK of 378 MHz (378/1=378) rn ssync();rn rn idle();rnrn rn/********************************************************rn*rn* 函数名 : Delayrn* 函数功能 : 延时rn* 函数输入参数 : 时长参数rn* 函数输出 : 无rn* 说明 : 无 rn*rn********************************************************/ rnvoid Delay(unsigned long time)rnrn unsigned long i,j;rn for(i=0; i

Blackfin DSP 531

12-31

[img=http://hi.csdn.net/attachment/201012/31/8664261_1293776872CJCI.jpg][/img]rn[img=http://hi.csdn.net/attachment/201012/31/8664261_1293776873HHhC.jpg][/img]rn[img=http://hi.csdn.net/attachment/201012/31/8664261_12937768749c5r.jpg][/img]rn程序大概就是rn// LED操作地址定义rn#define pLed (volatile unsigned char *)0x203D0000rn[color=#FF0000]#define pSEG_8_0 (volatile unsigned char *)0x203C4000[/color]#define pSEG_8_1 (volatile unsigned char *)0x203CC000rn#define pSEG_8_2 (volatile unsigned char *)0x203C8000rn#define pSEG_8_3 (volatile unsigned char *)0x203C0000rnrnvoid main(void)rn rn unsigned int i,j;rn int led = 0x01;rnrn Init_EBIU();rn rn *pSEG_8_0 = NumberData[SEG_ALLLIGHT];rn *pSEG_8_1 = NumberData[SEG_ALLLIGHT];rn *pSEG_8_2 = NumberData[SEG_ALLLIGHT];rn *pSEG_8_3 = NumberData[SEG_ALLLIGHT];rn rn Delay(0x100);rn rn *pSEG_8_0 = NumberData[SEG_ALLSHUT];rn *pSEG_8_1 = NumberData[SEG_ALLSHUT];rn *pSEG_8_2 = NumberData[SEG_ALLSHUT];rn *pSEG_8_3 = NumberData[SEG_ALLSHUT];rn rn Delay(0x100);rnrn while(1)rn rn for(i=0; i<=9999; i++)rn rn // *pSEG_8_3 = NumberData[i/1000];rn j = (i%1000)/100; rn *pSEG_8_2 = NumberData[j];rn j = (i%100)/10; rn *pSEG_8_1 = NumberData[j];rn j = i%10; rn *pSEG_8_0 = NumberData[j];rn Delay(0x200000);rn if((led = led << 1) == 0x100) led = 0x01;rn *pLed = ~led;rn Delay(0x200);rn rn rnrn我是刚学的,看不懂#define pSEG_8_2 (volatile unsigned char *)0x203C8000,它到底是定义的是哪块的地址,恳请大家给分析下。

没有更多推荐了,返回首页