热搜关键词: 数字信号处理RTOSC语言Linux射频电路

rar

Multithreading in LabVIEW

  • 1星
  • 2018-10-19
  • 1.15MB
  • 需要2积分
  • 0次下载
标签: LabVIEW

LabVIEW

This  chapter  discusses  using  multithreading  to  improve  LabVIEW  applications’performance.  Multithreading  is  an  advanced  programming  topic,  and  its  use  requiresthe  programmer  to  posses  a  fundamental  understanding  of  this  technology.  Lab-VIEW  provides  two  significant  advantages  to  the  programmer  when  working  withmultitasking  and  multithreading.  The  first  advantage  is  the  complete  abstraction  ofthe  threads  themselves.  LabVIEW  programmers  never  create,  destroy,  or  synchronizethreads.  The  second  advantage  is  the  dataflow  model  used  by  LabVIEW.  This  modelprovides  G  a  distinct  advantage  over  its  textual  language  counterparts  because  itsimplifies  a  programmer’s  perception  of  multitasking.  The  fundamental  concept  ofmultitasking  can  be  difficult  to  grasp  with  text-based  languages.Multithreading  adds  a  new  dimension  to  software  engineering.  Applications  canperform  multiple  tasks  somewhat  simultaneously.  A  good  example  of  an  applicationthat  has  added  multithreading  is  Microsoft  Word  for  Windows  95  (Version  7.0).Word  for  Windows  95  uses  multithreading  to  perform  spell-checking  and  grammarvalidation.  The  threads  added  to  perform  this  task  allow  the  application  to  performthese  tasks  while  the  user  is  typing.  The  previous  version,  Word  6.0  for  Windows3.1,  cannot  do  this  because  it  runs  only  one  task  at  a  time;  a  user  would  have  tostop  typing  and  selectCheck  Spelling.  The  first  six  sections  of  this  chapter  providethe  basic  knowledge  of  multithreading.  This  discussion  focuses  on  definitions,  multitaskingmechanics,  multithreading  specific  problems,  and  information  on  variousthread-capable  operating  systems.A  brief  section  on  multithreading  myths  is  presented.  The  impact  of  multithreadingon  applications  is  misunderstood  by  a  number  of  programmers.  Section  9.6explains  precisely  what  the  benefits  of  multithreading  are.  Many  readers  will  besurprised  to  learn  that  multithreading  does  little  to  increase  the  speed  of  an  application.Multi-threading  does  provide  the  illusion  that  sections  of  an  application  runfaster.The  last  three  sections  of  this  chapter  are  devoted  to  the  effective  use  of  multithreadingin  LabVIEW.  A  strategy  to  estimate  the  maximum  number  of  useful  threadswill  be  presented.  The  focal  point  of  this  chapter  is  using  subroutine  VIs  to  maximizeapplication  performance.  The  use  of  threads  adds  a  new  dimension  of  benefits  toboth  subroutine  VIs  and  DLLs.

展开预览

猜您喜欢

评论

登录/注册

积分规则

意见反馈

求资源

回顶部

推荐内容

热门活动

热门器件

随便看看

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

 
机器人开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版 版权声明

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2026 EEWORLD.com.cn, Inc. All rights reserved
×